endelwar/twig-extensions

Some helpful Twig extensions

v0.9.0 2018-10-31 16:54 UTC

This package is auto-updated.

Last update: 2024-10-29 04:41:50 UTC


README

Some helpful Twig extensions

ColorLuminance

Modify luminance of hex RGB value

{{ ColorLuminance('#BADA55', 0.1) }}

Image

A wrapper for Gregwar/Image

<img src="{{ image('/img/big/image.jpg').resize(42, 42) }}">
<img src="{{ image('/img/big/image.jpg').sepia() }}">