PHP Classes

File: Library/vendor/twig/twig/doc/tags/filter.rst

Recommend this page to a friend!
  Classes of Duong Huynh Nghia   Lego PHP   Library/vendor/twig/twig/doc/tags/filter.rst   Download  
File: Library/vendor/twig/twig/doc/tags/filter.rst
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Lego PHP
Blog and shopping cart system
Author: By
Last change:
Date: 7 years ago
Size: 463 bytes
 

Contents

Class file image Download
``filter`` ========== Filter sections allow you to apply regular Twig filters on a block of template data. Just wrap the code in the special ``filter`` section: .. code-block:: jinja {% filter upper %} This text becomes uppercase {% endfilter %} You can also chain filters: .. code-block:: jinja {% filter lower|escape %} <strong>SOME TEXT</strong> {% endfilter %} {# outputs "&lt;strong&gt;some text&lt;/strong&gt;" #}