Autoprefixing feature
Autoprefixing feature
sylius_twig_hooks:
# ...
enable_autoprefixing: true
# ...Defining prefixes
Example
Last updated
Was this helpful?
Was this helpful?
{% hook 'index.form' with {
_prefixes: ['my_custom_prefix']
} %}{% hook 'app.index' %}
{# index.html.twig is an entry template, so it is not an hookable #}{% hook 'content' %}
{# this template is an hookable, and is hooked into app.index #}
{#
# so {% hook 'content' %} this is a shorter form of {% hook 'app.index.content' %}
# when autoprefixing is turned on
#}<button>Click me!</button>sylius_twig_hooks:
hooks:
'app.index':
content:
template: 'index/content.html.twig'
'app.index.content':
button:
template: 'index/content/button.html.twig