Miscellaneous

Showing 1 post.

Twig basic syntax, variables, filters and functions

Posted on October 26th, 2018 in Miscellaneous by George

Learn the basic syntax and how to declare variables, use filters and functions with twig. Twig has two delimiters :

If you want to try the code go to TWIG PLAYGROUND and for full reference on functions go to Twig Functions .

For full reference on twig go to Twig Documentation.

 
1. {%        %}  used to execute statements such as for-loops and filters;

2. {{         }} used to print the result of an expression to the templatep;

Read more...

Categories