-
Notifications
You must be signed in to change notification settings - Fork 342
New issue
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
_data.json and ReferenceError during "harp compile" #392
Comments
Is this occurring from a _data.jsonin the root? |
theopak
added a commit
to theopak/theopak.com
that referenced
this issue
Mar 26, 2015
I've been seeing the same issue (harp 0.15.2) when a partial references variables that exist in _layout.ejs: <%- partial('_partials/_post') %> _partial/_post.ejs: <%- locals.title %> |
@theopak, just ran into the same thing. |
Same error here.
head.ejs
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Here is example that runs well via server and throws ReferenceError during compile.
_data.json
_layout.ejs
Current workaround is to access properties defined in _data.json via
locals
Pretty inconsistent, so I decided to open this issue. Thanks.
The text was updated successfully, but these errors were encountered: