handlebars.js - Pass data to JavaScript variable from Handlebars in Keystone.JS -


i using handlebars views , want pass returned data database javascript/jquery. similar logic code in handlebars?

//these lines of code jade template.   <script type="text/javascript">      var sydjs = {};     sydjs.meetup = !{json.stringify(meetup)};   </script> 

use triple curly braces {{{ }}}

see http://handlebarsjs.com/ html escaping


Comments

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -