Closed lowv-developer closed 4 years ago
The code you mentioned has been added in v0.5.0
for template inheritance to work properly. I'm investigating, but I think I'm going to roll back the template inheritance feature until we get it right.
Rolled it back for now, releasing a hotfix...
I've made the tests, the const hasLayout seems to me unnecessary in general. i think that you use it only in this place.
It was so that you could extend a template from another template - see #69
Obviously it didn't work as expected, resulting in no layout when serve
ing and the same layout for all templates otherwise (even if you had specified a custom layout in Front Matter).
Released v.0.5.1
as a hotfix 👍
Description:
If the layout var is not declared inside template, the default layout is not exported.
Steps To Reproduce:
Default installation
Solution:
$ @maizzle/framework/src/generators/output/toString.js