Skip to content

HTML extension for Twig

License

Notifications You must be signed in to change notification settings

twigphp/html-extra

Repository files navigation

Twig HTML Extension

This package is a Twig extension that provides the following:

  • data_uri filter: generates a URL using the data scheme as defined in RFC 2397;

  • html_classes function: returns a string by conditionally joining class names together.

  • html_cva function: returns a Cva object to handle class variants.