symfony:symfony_tutorial_notes:creating_and_using_templates
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
symfony:symfony_tutorial_notes:creating_and_using_templates [2015/09/16 21:40] – [TL;DR] mithat | symfony:symfony_tutorial_notes:creating_and_using_templates [2015/09/16 21:41] (current) – [Including Stylesheets and JavaScripts in Twig] mithat | ||
---|---|---|---|
Line 47: | Line 47: | ||
==== Including other Templates ==== | ==== Including other Templates ==== | ||
<code twig> | <code twig> | ||
- | | + | {% for article in articles %} |
- | {{ include(' | + | {{ include(' |
- | {% endfor %} | + | {% endfor %} |
</ | </ | ||
Line 118: | Line 118: | ||
Consider using [[http:// | Consider using [[http:// | ||
- | With Twig, assuming you have a parent: | + | With Twig, assuming you have the parent: |
<code twig> | <code twig> | ||
Line 130: | Line 130: | ||
</ | </ | ||
- | in a child you can add to the assets defined in the parent: | + | in its child you can add to the assets defined in the parent: |
<code twig> | <code twig> | ||
{% extends ' | {% extends ' |
symfony/symfony_tutorial_notes/creating_and_using_templates.1442439611.txt.gz · Last modified: 2015/09/16 21:40 by mithat