noelforte / eleventy-plugin-vento

Eleventy plugin that adds support for Vento templates
https://www.npmjs.com/package/eleventy-plugin-vento
MIT License
5 stars 0 forks source link

v2.0.0 #7

Closed noelforte closed 1 month ago

noelforte commented 1 month ago

This pull request tracks release of v2.0.0 of eleventy-plugin-vento. The major change with this release is the removal of the filters configuration property. We pull all JavaScript functions from Eleventy at runtime and make some quick comparisons to filter out the filters from the rest of the helpers. The helpers go on to be exposed as runnable functions in your templates, but the filters become Vento filters.

- <p>This is a paragraph with a filter that does something {{ emphasize('really') }} cool.</p>
+ <p>This is a paragraph with a filter that does something {{ 'really' |> emphasize }} cool.</p>

Adding support for paired shortcodes is something I want to tackle next, but its not a super high priority. Looking to https://github.com/11ty/eleventy/issues/3310 to see if there's any more efficient ways of handling that integration, as well as developments in https://github.com/11ty/eleventy/issues/3081 for the pug plugin, since there may be some overlap with needs there.