An open API service indexing awesome lists of open source software.

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

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