Closed koteisaev closed 4 years ago
Hi @konstardiy, thanks for the feedback! This is a feature I'll implement in version 2, which will hopefully be released within a month.
P.S. I just edited your issue to so it's formatted as code, which makes it a little easier to read 😄
Thanks for re-formatting. I did not used to that formatting for a while.
Hi @konstardiy! The next version of Squirrelly isn't out yet, but I just wrote a helper that allows you to use layouts!
You can check it out here: https://stackblitz.com/edit/squirrelly-layouts. You only need to look at index.js
, because storage.js
just has some of my future ideas :)
Hope this helps! :smiley:
Hi @konstardiy, layouts are implemented in Squirrelly v8!
The Squrelly is great template engine. I just found a single limitation in this engine. There is no layouts support. I expected that would be able to use syntax like this: in layout.html
in page.html
Idea is to introduce some syntax to allow inheritance for templates, when a template can override blocks inherited from "parent" layout.