Skip to content

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

@botic

Description

@botic

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions