I have been wondering if it is possible to add a parameter for the asset twig function like this
#config.yml
...
framework:
templating:
parameters:
key: value
OR
twig:
parameters:
key: value
...
And in the twig file use asset like this
# twig file
<script src="{{ asset('/file/path', key) }}"></script>
And will regenerate
<script src="/file/path?key=value"></script>
I know i can create a macro to do this but i want to know if there are another way.
Thank for your reply