twig/html-extra

A Twig extension for HTML

Fund package maintenance!
fabpot
Tidelift

Installs: 2 397 157

Dependents: 22

Suggesters: 0

Security: 0

Stars: 43

Watchers: 4

Forks: 5

v3.15.0 2024-09-30 06:41 UTC

README

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.