I'd create a component so you can do something like this

   <t:handlebars id="entry-template">
   <p:template>
   
   </p:template>
   </t:handlebars>

Then use something like this to write out the script tag

http://tapestry.1045711.n5.nabble.com/Getting-the-HTML-markup-string-from-a-RenderCommand-td5564418.html#a5565449

You still need the CDATA but I'd say the benefits of tml files being valid
XML easily out weight the drawbacks.

This way the tml file has more or less what you want and the client side
should work just fine because you remove the CDATA on the server.

--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Tapestry-and-inline-Handlebars-js-tp5660756p5663235.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to