I've had a few further ideas whilst thinking about templates from the
other thread that I'd like to hear some thoughts on.
Does it make sense for pages in the root of content to be templated from
the root of the templates directory?
Would following symlinks when resolving template files provide more
flexibility for people seeking to share one template between multiple
directories?
On Fri Sep 23, 2022 at 12:57 PM EDT, Edd Salkield wrote:
> I've had a few further ideas whilst thinking about templates from the> other thread that I'd like to hear some thoughts on.>> Does it make sense for pages in the root of content to be templated from> the root of the templates directory?
I believe this is already the case.
> Would following symlinks when resolving template files provide more> flexibility for people seeking to share one template between multiple> directories?
This should already be the case as well, no? kiln doesn't distinguish
between symlinks and regular files.
> > Does it make sense for pages in the root of content to be templated> > from> > the root of the templates directory?> I believe this is already the case.
Quite right, sorry I'd just misinterpreted a test case I'd tried.
> > Would following symlinks when resolving template files provide more> > flexibility for people seeking to share one template between multiple> > directories?> This should already be the case as well, no? kiln doesn't distinguish> between symlinks and regular files.
Currently kiln performs an IsRegular check in templates.go to ensure
that every template is a regular file, which excludes symlinks.
I can send in a patch for this change also.