In a grails gsp template, how can I use a server side comment without sitemesh throwing an error?

gabe picture gabe · Jul 6, 2011 · Viewed 17k times · Source

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?

Answer

D&#243;nal picture Dónal · Jul 7, 2011

The following works for me

%{-- <div>hello</div> --}%