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
Post a Comment