Closed babsonmatt closed 10 years ago
Can anyone else confirm this?
app.locals({ name: 'joe' })
<%- name %>
This should render 'joe', however it says 'name is undefined'.
I tried Swig as an alternative, and Swig appears to work fine.
You trying to access local variable name. All input variables need to be prefixed with @ (this). Try to output with this code:
name
@
<%- @name %>
Is anyone looking at this?
Can anyone else confirm this?
app.locals({ name: 'joe' })
<%- name %>
This should render 'joe', however it says 'name is undefined'.
I tried Swig as an alternative, and Swig appears to work fine.