edmellum / browserijade

A Browserify middleware that pre-compiles Jade templates on the server and uses the light-weight Jade runtime made for the browser to render them on the client.
21 stars 6 forks source link

Global locals #13

Open samholmes opened 10 years ago

samholmes commented 10 years ago

In Express you can define global locals using app.locals. Jade templates that run on Express on the server-side that use these globally defined locals work just fine. However, they do not work on the client-side; I just get error messages saying that the locals are not defined. Is there a way to get app.locals to work on the client-side, or is there a way to define a separate set of locals for browserijade?