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.
This pull request tracks release of v2.0.0 of
eleventy-plugin-vento
. The major change with this release is the removal of thefilters
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.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.