diff options
| author | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:17:59 -0700 |
|---|---|---|
| committer | Steve Piercy <web@stevepiercy.com> | 2018-08-18 12:17:59 -0700 |
| commit | a0019b2276432abed88090adcdb80e728b799366 (patch) | |
| tree | 36ed2644c39bc1f83e169db869cf3f22ed021ee6 /docs | |
| parent | fca57a1daaa553a5a56de2c785e3655c2f82bcfd (diff) | |
| download | pyramid-a0019b2276432abed88090adcdb80e728b799366.tar.gz pyramid-a0019b2276432abed88090adcdb80e728b799366.tar.bz2 pyramid-a0019b2276432abed88090adcdb80e728b799366.zip | |
Clean up code-blocks in qt/jinja3
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/quick_tutorial/jinja2.rst | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/docs/quick_tutorial/jinja2.rst b/docs/quick_tutorial/jinja2.rst index 4faa81fc4..87122a374 100644 --- a/docs/quick_tutorial/jinja2.rst +++ b/docs/quick_tutorial/jinja2.rst @@ -27,38 +27,38 @@ Steps .. code-block:: bash - $ cd ..; cp -r view_classes jinja2; cd jinja2 - $ $VENV/bin/pip install -e . - $ $VENV/bin/pip install pyramid_jinja2 + cd ..; cp -r view_classes jinja2; cd jinja2 + $VENV/bin/pip install -e . + $VENV/bin/pip install pyramid_jinja2 #. We need to include ``pyramid_jinja2`` in ``jinja2/tutorial/__init__.py``: .. literalinclude:: jinja2/tutorial/__init__.py - :linenos: + :linenos: #. Our ``jinja2/tutorial/views.py`` simply changes its ``renderer``: .. literalinclude:: jinja2/tutorial/views.py - :linenos: + :linenos: #. Add ``jinja2/tutorial/home.jinja2`` as a template: .. literalinclude:: jinja2/tutorial/home.jinja2 - :language: html + :language: html #. Now run the tests: .. code-block:: bash - $ $VENV/bin/py.test tutorial/tests.py -q - .... - 4 passed in 0.40 seconds + $VENV/bin/py.test tutorial/tests.py -q + .... + 4 passed in 0.40 seconds #. Run your Pyramid application with: .. code-block:: bash - $ $VENV/bin/pserve development.ini --reload + $VENV/bin/pserve development.ini --reload #. Open http://localhost:6543/ in your browser. |
