File: README.md

package info (click to toggle)
php-twig 3.20.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,940 kB
  • sloc: php: 23,320; makefile: 110; sh: 43
file content (16 lines) | stat: -rw-r--r-- 498 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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