chiquitinxx / grooscript-plugins

Grooscript plugins - Gradle and Grails 3
12 stars 1 forks source link

"it" doesn't work #3

Closed dilvan1 closed 8 years ago

dilvan1 commented 8 years ago

In the examples, if you change the variable book to it the template stops working (using org.grails.plugins:grooscript:1.1.0):

<grooscript:template onLoad="false" functionName="refreshList" itemSelector="#list" >
     ul {
         data.each {
             li {
                 p 'Id: ' + it.id + ' Name: ' + it.title
             }
         }
     }
</grooscript:template>

OR

<grooscript:template onLoad="false" functionName="refreshList" itemSelector="#list" >
     ul {
         data.each { it ->
             li {
                 p 'Id: ' + it.id + ' Name: ' + it.title
             }
         }
     }
</grooscript:template>
chiquitinxx commented 8 years ago

Thank you very much :)