-
Notifications
You must be signed in to change notification settings - Fork 10
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
tmpl.render is not a function #21
Comments
Same issue. |
@kevinboudot, I came across this error while evaluating Webpack vs Browserify. I ended up settling with Webpack (for lots of reasons), and the Not sure if that's an option for you, but I thought I'd share. |
Well, it's clearly deliberate, just it breaks my code, and I'm not sure whether should I fix it, as it might be eventually considered as a bug, cause according to (massively outdated) documentation https://github.com/rotundasoftware/nunjucksify/blob/master/index.js#L41 |
The code below throws the error:
tmpl.render is not a function(…)
helloworld.nunj
app.js
The output of tmpl is a function that looks like this:
I can actually get the template to render, by treating it as a function:
However, if I don't use nunjucksify, I can get the expected result:
Any thoughts?
The text was updated successfully, but these errors were encountered: