ventojs / vento

🌬 A template engine for Deno & Node
https://vento.js.org/
MIT License
153 stars 9 forks source link

Fix nested layouts #46

Closed wrapperup closed 3 months ago

wrapperup commented 3 months ago

This is probably a weird use of layouts (I'm kinda using them like components). However, since most of my templates are already in a layout, this didn't work since it was just outputting to itself (the __content variable shadows the parent, which also is a layout setting the output var to __content).

Also added a test for this.

oscarotero commented 3 months ago

Thank you!