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

v2.0.0 #7

Merged
merged 14 commits into from
Jun 8, 2024
Merged

v2.0.0 #7

merged 14 commits into from
Jun 8, 2024

Conversation

noelforte
Copy link
Owner

@noelforte noelforte commented Jun 7, 2024

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 11ty/eleventy#3310 to see if there's any more efficient ways of handling that integration, as well as developments in 11ty/eleventy#3081 for the pug plugin, since there may be some overlap with needs there.

@noelforte noelforte merged commit cbde0c5 into main Jun 8, 2024
2 checks passed
@noelforte noelforte deleted the beta branch June 8, 2024 22:02
@noelforte noelforte restored the beta branch June 8, 2024 22:05
@noelforte noelforte deleted the beta branch June 8, 2024 22:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Explore aligning plugins and filters API Expose Vento's Internal Plugins (ie, autoTrim)
1 participant