stick icon indicating copy to clipboard operation
stick copied to clipboard

app.render(skin, context) requires context

Open botic opened this issue 14 years ago • 0 comments

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", {});

botic avatar Aug 12 '11 14:08 botic