We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
All local variables used to be scoped to locals but now that is no longer the case as locals is undefined in EJS templates rendered via partial()
locals
e.g. the following now throws an error:
parent template:
<%- partial('user', {name: 'Aaron'}) ->
user partial template:
<h1>Hello, <%= locals.name %></h1>
The text was updated successfully, but these errors were encountered:
No branches or pull requests
All local variables used to be scoped to
locals
but now that is no longer the case aslocals
is undefined in EJS templates rendered via partial()e.g. the following now throws an error:
parent template:
user partial template:
The text was updated successfully, but these errors were encountered: