Make it possible to use template inheritance / parse all templates
alinnert opened this issue · comments
Andreas Linnert commented
The problem the feature solves
I tried to leverage template inheritance as described in this article: https://lets-go.alexedwards.net/sample/02.08-html-templating-and-inheritance.html. Unfortunately it doesn't work because verless doesn't recognize my "base" template.
❗ failed to build the project: template: list-page.html:1:11: executing "list-page.html" at <{{template "base" .}}>: template "base" not defined
Your suggested solution
Does verless only read those templates that are mentioned in theme.yml
+ page.html
and list-page.html
? I think to make this work you need to parse all templates inside that folder.
Or: you could add a property in theme.yml
that lists all template files that are used indirectly. But this could get tedious pretty quickly.