Skip to content

Layout feature #201

@mikhin

Description

@mikhin

@pmb0, hi! Thanks for your lib. I believe it is advantageous – I will try to use it.

I have a question – is there some way we could set the component that could be the layout?

I saw earlier in some examples of hbs that it could be set something like this:

app.engine("hbs", expressHbs.engine(
    {
        layoutsDir: "views/layouts", 
        defaultLayout: "layout",
        extname: "hbs"
    }
))

It will be helpful to have this feature inside nestjs-tsx-views.

Also, I think that could be done through the transform property, but just curious about an internal feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions