You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As the latter is always the same, is there a way for me to load it programatically within the Twig template or inject it in, so that I no longer need to pass it as an argument and simplify the templates.
The text was updated successfully, but these errors were encountered:
I've written some custom Twig filters on my site (https://raw.githubusercontent.com/opdavies/oliverdavies.uk/master/src/FormatTalksBundle/Twig/FormatTalksExtension.php) to format talks data as needed to generate a talks table.
Currently I have to pass in the talk data depending on the context, and the global events data which is stored as
site.events
insculpin_site.yml
(there are two examples of this on https://raw.githubusercontent.com/opdavies/oliverdavies.uk/master/source/talks.html.twig).As the latter is always the same, is there a way for me to load it programatically within the Twig template or inject it in, so that I no longer need to pass it as an argument and simplify the templates.
The text was updated successfully, but these errors were encountered: