I want to use org.stringtemplate.v4.* as template engine for rendering html pages.
However I cant find how to escape open brackets in my file. Templator thinks that it is some expression, while it is just javascript code.
I tried \{ but this not help - i stil got
504:15: invalid character '\'
504:16: '{' came as a complete surprise to me
How to escape this? Or what analogs of stringtemplate exist, that can correctly handle html page as input?
When I got this error was because I forgot a end sign ($) for a attribute. It should be like this $attribute.name$
Reference: http://www.antlr.org/wiki/display/ST/Expressions#Expressions-AttributeReferences
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