You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
At the moment it's not possible to render a template without a context object:
app.render("test.html");
This results in "TypeError: Cannot set property "content" of undefined to "WTF?!" (stick/lib/middleware/render.js#52)", which might confuse beginners, who just want to render a basic template without any variables.
The following works:
app.render("test.html",{});
The text was updated successfully, but these errors were encountered:
At the moment it's not possible to render a template without a context object:
This results in "TypeError: Cannot set property "content" of undefined to "WTF?!" (stick/lib/middleware/render.js#52)", which might confuse beginners, who just want to render a basic template without any variables.
The following works:
The text was updated successfully, but these errors were encountered: