https://github.com/twigphp/html-extra
HTML extension for Twig
https://github.com/twigphp/html-extra
html php twig twig-extension
Last synced: 11 months ago
JSON representation
HTML extension for Twig
- Host: GitHub
- URL: https://github.com/twigphp/html-extra
- Owner: twigphp
- License: mit
- Created: 2019-08-10T05:53:49.000Z (over 6 years ago)
- Default Branch: 3.x
- Last Pushed: 2025-05-02T13:19:09.000Z (11 months ago)
- Last Synced: 2025-05-13T02:39:46.141Z (11 months ago)
- Topics: html, php, twig, twig-extension
- Language: PHP
- Homepage:
- Size: 95.7 KB
- Stars: 61
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
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