Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR HTML

twig format

{{ "I like %s and %s."|format(foo, "bar") }}

{# outputs I like foo and bar
   if the foo parameter equals to the foo string. #}
Source by twig.symfony.com #
 
PREVIOUS NEXT
Tagged: #twig #format
ADD COMMENT
Topic
Name
6+1 =