nestjs-tsx-views
nestjs-tsx-views copied to clipboard
Layout feature
@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.