Grails Plugin: Backward Compatibility

I am developing grails plugin

which adds a new taglib and renders the template.

My problem is that this template outputs JSON

and I don't need to code it.

If I use the function raw()

it works fine, but it is incompatible with Grails versions <2.3.x.

Previous versions work if I use scripts (<% =%>), but they are escaped by default in newer versions ([..] scriptlet = 'html' [..]).

Is there any solution that works in all versions?

+3


source to share


1 answer


Try adding the following line to your template:



<%@page expressionCodec="none" %>

      

0


source







All Articles