When I use a standard jsp comment block in a gsp template
<%-- some server-side comment --%>
, sitemesh throws an 'unexpected token' error. Is there another comment syntax I can use?
Ctrl+Slash to comment. Result: Java/Groovy line comments are inserted outside the scriptlets, into HTML context. If some template text is also inside selection, then correct, GSP comments are inserted.
Groovy Servers Pages (or GSP for short) is Grails' view technology. It is designed to be familiar for users of technologies such as ASP and JSP, but to be far more flexible and intuitive.
The following works for me
%{-- <div>hello</div> --}%
You are missing a '%' sign. Write it as :
<%-- some server-side comment --%>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With