talks/workshop-tailwind-css/sections/task-5-loops.rst

26 lines
368 B
ReStructuredText

.. page:: titlePage
.. class:: centredtitle
Task 5: Refactor - avoid duplication using loops
.. page:: standardPage
Before we start
---------------
.. code-block::
:include: code/task-5-before.txt
Using a loop
------------
.. code-block:: html
:include: code/loops-1.txt
Using a loop
------------
.. code-block:: twig
:include: code/loops-2.txt