Open utterances-bot opened 2 years ago
Note that the filename
option is needed to resolve relative paths in includeFile
.
For example:
Sqrl.render(string, data, {filename: './'})
How to check partial mypartial
exist?
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
Partials and Template Inheritance | SquirrellyJS
Partials
https://squirrelly.js.org/docs/syntax/partials-layouts