squirrellyjs / squirrelly-docs

The new docs website for Squirrelly v7 and v8
https://squirrelly.js.org
2 stars 4 forks source link

docs/syntax/partials-layouts/ #60

Open utterances-bot opened 2 years ago

utterances-bot commented 2 years ago

Partials and Template Inheritance | SquirrellyJS

Partials

https://squirrelly.js.org/docs/syntax/partials-layouts

KCErb commented 2 years ago

Note that the filename option is needed to resolve relative paths in includeFile.

For example:

Sqrl.render(string, data, {filename: './'})
jackusay commented 1 year ago

How to check partial mypartial exist?

urostripunovic commented 6 months ago

I'm not really sure where to ask this question since there isn't a dedicated page to it but how would I render a parent block inside a child block using the {{@extendsFile('index.html')}} command? using the example from nunjucks