x-govuk / govuk-eleventy-plugin

Write documentation using Markdown and publish it using GOV.UK styles.
https://x-govuk.github.io/govuk-eleventy-plugin/
MIT License
55 stars 14 forks source link

Add virtual templates #343

Open paulrobertlloyd opened 1 month ago

paulrobertlloyd commented 1 month ago

Fixes #290.

One issue I’ve discovered; includes and layouts directory are relative to the input directory. If you use a relative path (i.e. ../layouts), Eleventy will look in that folder and ignore the virtual templates (and/or their template paths).

To do

Possibly in a separate PR

paulrobertlloyd commented 1 month ago

With a virtual template provided by the official Eleventy RSS plugin, do we want to bundle that with this plugin, or just let users opt into generating RSS feeds via that plugin (perhaps only providing a pointer to the instructions for doing so?).

Otherwise we might just be adding in a layer of needless complexity and obscurity, and possibly require even more configuration options that we’d need to pass around, document and maintain. @frankieroberto