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

Add smarty url function #1078

Merged
merged 7 commits into from
Nov 9, 2021
Merged

Add smarty url function #1078

merged 7 commits into from
Nov 9, 2021

Conversation

MekDrop
Copy link
Member

@MekDrop MekDrop commented Nov 4, 2021

Warning This pull request is based on code from #1077 so that pull request needs to be merged first

This pull request adds small smarty helper new function - url for generating routes by name from templates.
F.e.:

<{url name="homepage"}>

and with attributes:

<{url name="legacy_proxy" attr=["path" => "LICENSE"] }>

Works similar to symfony twig url function.

@fiammybe fiammybe merged commit 928e5a1 into ImpressCMS:master Nov 9, 2021
@MekDrop MekDrop deleted the improvement/add-smarty-url-function branch November 9, 2021 23:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants