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

How do I add a new template language? #1422

Closed
silvenon opened this issue Sep 20, 2020 · 2 comments
Closed

How do I add a new template language? #1422

silvenon opened this issue Sep 20, 2020 · 2 comments

Comments

@silvenon
Copy link

I would like to register a new language called posthtml which uses PostHTML, how do I do this? Also, if I define htmlTemplateEngine: 'posthtml', will PostHTML be applied after other languages, too? E.g. will .ejs files first be processed with EJS, then PostHTML? Thanks!

@gobeli
Copy link

gobeli commented Sep 21, 2020

It's going to be possible with the "Custom File Extension Handler"-feature ( #117)
You can already use them with activated experimental features (ELEVENTY_EXPERIMENTAL=true npx @11ty/eleventy)
A good example is the vue plugin: https://github.com/11ty/eleventy-plugin-vue

@silvenon
Copy link
Author

Thanks!

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

2 participants