home -> layouts/default -> layouts/app
so you can use many intermediate layers instead of layouts/default and having a basic immutable layer (layouts/app)
Now, if I use the code above, I get an error:
[posthtml-extend] Unexpected block "content"
If I rename layout to content inside layouts/app.html
then the contents of layouts/default.html is ignored
my solution looks dirty, such a template should be in every page, layout default can be changed for individual pages:
I don't think that i can do much about it, as the functionality depends on posthtml-extend. If anyone finds a way to do this, feel free to open a PR.
But I myself won't try to implement this right now.
Tell me, please, is it possible to use templates in this way?
home.html
layouts/default.html
layouts/app.html
home -> layouts/default -> layouts/app so you can use many intermediate layers instead of layouts/default and having a basic immutable layer (layouts/app)
Now, if I use the code above, I get an error: [posthtml-extend] Unexpected block "content"
If I rename layout to content inside layouts/app.html then the contents of layouts/default.html is ignored
my solution looks dirty, such a template should be in every page, layout default can be changed for individual pages: