The Wayback Machine - https://web.archive.org/web/20220210191150/https://github.com/caddyserver/caddy/issues/4568
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

Make templates pluggable #4568

Open
francislavoie opened this issue Feb 10, 2022 · 0 comments
Open

Make templates pluggable #4568

francislavoie opened this issue Feb 10, 2022 · 0 comments

Comments

@francislavoie
Copy link
Member

@francislavoie francislavoie commented Feb 10, 2022

Context: https://caddy.community/t/including-files-scripts/15050/4

Right now, the templates module is inflexible in that only functions the functions registered by Caddy itself are available.

A good refactor would be to make it possible to pass an optional array of modules in the http.handlers.templates.functions.* namespace which get invoked at Provision() time to register additional functions.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
1 participant