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

Extended ShortCodes #304

Merged
merged 16 commits into from
Oct 11, 2024
Merged

Extended ShortCodes #304

merged 16 commits into from
Oct 11, 2024

Conversation

thmarx
Copy link
Collaborator

@thmarx thmarx commented Oct 11, 2024

This PR brings a new ShortCode parser that is more extendable than the old regex based one.

shortcode parameters can no contains strings, numbers, booleans and expressions.
Tt is possible to access the metadata in these expressions.

e.g.
[[title title="${meta.title}" /]]
[[person age=46 /]]
[[person admin=false /]]

@thmarx thmarx added this to the 6.4.0 milestone Oct 11, 2024
@thmarx thmarx linked an issue Oct 11, 2024 that may be closed by this pull request
@thmarx thmarx marked this pull request as ready for review October 11, 2024 11:10
@thmarx thmarx merged commit 611ebc3 into CondationCMS:main Oct 11, 2024
1 check passed
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.

Expressions in ShortCode parameters
1 participant