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

r - how do you merge two data frames the best way? -

How to debug "expected android.widget.TextView but found java.lang.string" in Android? -

php - mySQL problems with this code? -