Skip to content

Support for a default view #6

@peters

Description

@peters

We have a lot of code that depends on having a default layout rendered depending on the what code module that is loaded. Since express has no concept of layouts anymore, we began looking for alternative implementations since rewriting is not an option, but a drop-in replacement is acceptable to us.

Then i found this great little library, and it will save us x amount of work. But how would one set a default layout, in 2.x we would do it like this:

app.set('view options', {
   layout: __magic_path + '/default_layout.ejs'
});

How can we do that using your middleware? :)

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