Grail interferes with jquery-tmpl syntax
The jQuery template plugin uses the syntax ${foo}( example in the jquery.tmpl file ):
$.tmpl( "<li>${Name}</li>", myData )
But Grails also uses it ( example in a Grails document ):
<body>
Hello ${params.name}
</body>
So, when I include $.tmpl( "<li>${Name}</li>", myData )in my .gsp, Grails displays it as $.tmpl( "<li></li>", myData );.
Is there an easy way around this?
+3
4 answers

