Closed sijo-vijayan closed 8 years ago
var postvar = {{{req}}}
Now it working fine, I can't find this triple curly brackets anywhere on its readme file. Where i can find the reference of this triple brackets ?
Thanks for your help.
http://mustache.github.io/mustache.5.html
All variables are HTML escaped by default. If you want to return unescaped HTML, use the triple mustache: {{{name}}}.
Hogan uses Mustache - {{{var}}} is the syntax for outputting unescaped HTML, and can be found on the Mustache GitHub as referenced by the Hogan readme https://mustache.github.io/mustache.5.html
On 8 Feb 2016, at 09:11, sijo-vijayan notifications@github.com wrote:
Now it working fine, I can't find this triple curly brackets anywhere on its readme file. Where i can find the reference of this triple brackets ?
Thanks for your help.
— Reply to this email directly or view it on GitHub.
Thanks for you help @ex1st @charliejlryan
I would like to embed http post variable into a javascript local variable in the .hjs template file. I have done this like given below.
In the route handler
In the index.hjs file
But json value printing in the final html like the following
Expected output is given below
Please give me a solution.