Skip to content
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

app.render(skin, context) requires context #17

Open
botic opened this issue Aug 12, 2011 · 0 comments
Open

app.render(skin, context) requires context #17

botic opened this issue Aug 12, 2011 · 0 comments

Comments

@botic
Copy link
Member

botic commented Aug 12, 2011

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", {});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant