Description
I have some velocity templates that include quit some javascript. Inside the javascript a javascrip template engine is used which also uses ${varname}
Escaping each occurance would make the code rather unreable, so to prevent velocity from parsing the javascript code, I put a #literal() around it.
However, velocity still PARSES the contents of this block, which of course results in parsing exceptions.
My feeling with "literal" is that it is completely UNINTERPRETED content?
This SHOULD work:
#literal()
var myId = 'someID';
$('#test).append($.template('<div id="${myId}"></div>').apply(
));
#end
Attachments
Attachments
Issue Links
- is related to
-
VELOCITY-584 Change the #include directive ignore the SSI version of include
- Closed