thisismissem,
@thisismissem@hachyderm.io avatar

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.

  • All
  • Subscribed
  • Moderated
  • Favorites
  • programming
  • ethstaker
  • DreamBathrooms
  • everett
  • magazineikmin
  • Durango
  • InstantRegret
  • rosin
  • Youngstown
  • love
  • slotface
  • GTA5RPClips
  • kavyap
  • mdbf
  • ngwrru68w68
  • megavids
  • thenastyranch
  • tacticalgear
  • cubers
  • modclub
  • osvaldo12
  • cisconetworking
  • tester
  • khanakhh
  • normalnudes
  • provamag3
  • anitta
  • Leos
  • JUstTest
  • All magazines