Skip to content

Add RenderTemplateEvent#9

Open
m-vo wants to merge 1 commit intomainfrom
feature/event
Open

Add RenderTemplateEvent#9
m-vo wants to merge 1 commit intomainfrom
feature/event

Conversation

@m-vo
Copy link
Copy Markdown
Owner

@m-vo m-vo commented Apr 28, 2021

This PR adds an event that gets dispatched before the replacement twig template gets rendered.

It basically allows altering the template + context before it gets rendered, which should e.g. be handy in case you want to wrap all data into a class that is considered "safe" (like in this proposal contao/contao#2612).

/cc @dmolineus, @richardhj

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.

1 participant