|
|
|
@ -58,6 +58,7 @@
|
|
|
|
|
<div class="tt-image-style">{{ 'public://images/ocean.jpg' | image_style('thumbnail') }}</div> |
|
|
|
|
<div class="tt-transliterate">{{ 'Привет!' | transliterate('ru') }}</div> |
|
|
|
|
<div class="tt-check-markup">{{ '<b>bold</b> <strong>strong</strong>' | check_markup('twig_tweak_test') }}</div> |
|
|
|
|
<div class="tt-format-size">{{ 12345|format_size() }}</div> |
|
|
|
|
<div class="tt-truncate">{{ 'Hello world!'|truncate(10, true, true) }}</div> |
|
|
|
|
<div class="tt-with">{{ {'#markup':'Example'}|with('#prefix', '<b>')|with('#suffix', '</b>') }}</div> |
|
|
|
|
<div class="tt-with-nested">{{ {alpha: {beta: {gamma: 123}}}|with(['alpha', 'beta', 'gamma'], 456)|json_encode|replace({'"':''}) }}</div> |
|
|
|
|