Open Zearin opened 1 year ago
I am trying WebC for the first time.
I’m trying it out in a project that uses Pug, if that matters. I’m not converting all Pug templates—just a few small components for the benefits of co-locating all relevant code in a single file.
The plugin works, but only if I use:
eleventyConfig.addPlugin(pluginWebc, { useTransform: true })
Can you update the docs with an explanation of which circumstances may require using this option?
It looks like when this option si enabled, HTML output will be post-processed as WebC. I don't know Pug enough to tell the relationship. https://www.11ty.dev/docs/languages/webc/#post-process-html-output-as-webc
I am trying WebC for the first time.
I’m trying it out in a project that uses Pug, if that matters. I’m not converting all Pug templates—just a few small components for the benefits of co-locating all relevant code in a single file.
The plugin works, but only if I use:
Can you update the docs with an explanation of which circumstances may require using this option?