I'm using express-handlbars
as my template engine, and I can use it to place text into my script just fine:
res.render('index', {foo: "something"});
then in my template:
var foo = "{{ foo }}"
gives me foo = "something"
in my client as I would expect. It works great for strings.
I can't figure out, however, how I can pass an entire object this way?