In node.js i am sending the values to html through
render('/abc', mydata)
"mydata" contains json_encoded format.
And i am reading this as :
{{=mydata}}
Now, in the same html page i have javascript like :
<script>
xyz();
function xyz() {
// i need to read the "mydata" here.
}
</script>
I tried this which didn't work xyz({{=mydata}}) , How can i use that dynamic data in node.js ??
xyz({{=mydata}})as seen by the browser?app.set('view engine', ???)? Express isn't a view engine itself and the answer will likely vary based on which you're using with Express.