thisismissem, Handlebars.js is the worst templating language in existence, but, if you have to use it, and need some sort of "global" value in your templates, e.g., a csrf_token, then you can use this:
https://gist.github.com/ThisIsMissEm/014a2d6ddb0ba53bebfb7be04870c46b
I'm sorry for writing this code, it's a horrible hack. But maybe it'll be useful to you.