g-plane / markup_fmt

Configurable HTML, Vue, Svelte, Astro, Angular, Jinja, Twig, Nunjucks and Vento formatter with dprint integration.
https://dprint.dev/plugins/markup_fmt/
MIT License
91 stars 4 forks source link

Add Vento support #11

Closed wrapperup closed 5 months ago

wrapperup commented 6 months ago

Hi, thanks for making this plugin! It's hard to find a good formatter for HTML templates.

Any chance that support for Vento could be added? https://github.com/ventojs/vento

If not, it would be nice to map filetypes to template types (ie, map .vto to Jinja to get some formatting), and add the ability to preserve whitespace around mustaches/tags/blocks.

Thanks!

g-plane commented 6 months ago

You can map file associations in dprint config.

wrapperup commented 6 months ago

You can map file associations in dprint config.

Right, but it only lets you map it to the plugin. It will format it as an HTML file and not as a jinja-like template.