Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand virtual template support to includes #3501

Open
kfranqueiro opened this issue Oct 22, 2024 · 0 comments
Open

Expand virtual template support to includes #3501

kfranqueiro opened this issue Oct 22, 2024 · 0 comments

Comments

@kfranqueiro
Copy link

Is your feature request related to a problem? Please describe.

I realize that virtual templates are currently supported for standard files and for layouts, but it seems that they don't otherwise work for files under the includes directory - i.e., any attempt to {% include %} a virtual template fails to find it.

Describe the solution you'd like

I'd like to be able to define virtual templates via addTemplate with file paths under the includes directory, and have template engines pick them up. (I'm using Liquid but realize this might have applicability across multiple engines...)

Describe alternatives you've considered

I attempted to pass { templates: ... } through setLiquidOptions instead, but that didn't seem to work, either. I'm not sure if I'm misunderstanding that feature or if it has side effects though.

Additional context

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants
@zachleat @kfranqueiro and others