browserijade icon indicating copy to clipboard operation
browserijade copied to clipboard

Global locals

Open samholmes opened this issue 10 years ago • 0 comments

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?

samholmes avatar Mar 03 '14 20:03 samholmes