-
Notifications
You must be signed in to change notification settings - Fork 17
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
this.render is not a function #18
Comments
|
I must have been doing something dumb, I'm not able to reproduce the .pug extension error anymore. I just tried again and removed the .pug on render and it is working. Regarding the interpolation, maybe something changed with the new version of pug than what I was using before. Basically, it still works but with the exception of one scenario. So I have, The first scenario works fine but is the second that used to work but is not anymore. Ofcourse, I was able to fix this easily by removing the interpolation as it is not needed in this scenario. However, previously, I was able to use the #{} synthax inside quotes and get access to variables. |
I'm also seeing that my mongoose |
so i actually was able to reproduce the .pug error. This occurs when including or extending using a relative path. for example, but |
It is a bug of There're two solutions:
|
I'm using koa@2 and getting _this.render is not a function
Doing ctx.render does work but I need to specify 'index.pug' and not just 'index'. Also, not if it is related but string interpolation no longer works.
Just outputs #{product.price} after it's converted to html.
The text was updated successfully, but these errors were encountered: