mirror of
https://github.com/twigphp/Twig.git
synced 2026-11-11 04:36:47 +00:00
68a826cf61
This PR was merged into the 3.x branch.
Discussion
----------
[html-extra] filter classes
A small formatting change to avoid double spaces:
```twig
class="{{ html_classes('a', false ? 'b', true ? 'c') }}"
{# before #}
class="a c"
{# after #}
class="a c"
```
Commits
-------
a517c14f [html-extra] filter classes
Twig HTML Extension
This package is a Twig extension that provides the following:
-
data_urifilter: generates a URL using the data scheme as defined in RFC 2397; -
html_classesfunction: returns a string by conditionally joining class names together.