/html-extra

HTML extension for Twig

Primary LanguagePHPMIT LicenseMIT

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.