nestjs-tsx-views icon indicating copy to clipboard operation
nestjs-tsx-views copied to clipboard

Layout feature

Open mikhin opened this issue 2 years ago • 0 comments

@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.

mikhin avatar Apr 22 '23 11:04 mikhin