mirror of
https://github.com/twigphp/Twig.git
synced 2026-09-15 20:06:31 +00:00
17 lines
498 B
Markdown
17 lines
498 B
Markdown
Twig HTML Extension
|
|
===================
|
|
|
|
This package is a Twig extension that provides the following:
|
|
|
|
* [`data_uri`][1] filter: generates a URL using the data scheme as defined in
|
|
RFC 2397;
|
|
|
|
* [`html_classes`][2] function: returns a string by conditionally joining class
|
|
names together.
|
|
|
|
* [`html_cva`][3] function: returns a `Cva` object to handle class variants.
|
|
|
|
[1]: https://twig.symfony.com/data_uri
|
|
[2]: https://twig.symfony.com/html_classes
|
|
[3]: https://twig.symfony.com/html_cva
|