diff options
| author | Paul Everitt <paul@agendaless.com> | 2013-09-13 17:09:35 -0400 |
|---|---|---|
| committer | Paul Everitt <paul@agendaless.com> | 2013-09-13 17:09:35 -0400 |
| commit | 4042c772c8043ac96a22db439a736fec9ea2aafa (patch) | |
| tree | 88abca8bdea3781975822b716d7091b607fd1566 /docs/quick_tutorial/rest_bootstrap.rst | |
| parent | b1b92284f496800a4dfd2cea72cb9be07ba8661c (diff) | |
| download | pyramid-4042c772c8043ac96a22db439a736fec9ea2aafa.tar.gz pyramid-4042c772c8043ac96a22db439a736fec9ea2aafa.tar.bz2 pyramid-4042c772c8043ac96a22db439a736fec9ea2aafa.zip | |
All the references re-wired.
Diffstat (limited to 'docs/quick_tutorial/rest_bootstrap.rst')
| -rw-r--r-- | docs/quick_tutorial/rest_bootstrap.rst | 88 |
1 files changed, 0 insertions, 88 deletions
diff --git a/docs/quick_tutorial/rest_bootstrap.rst b/docs/quick_tutorial/rest_bootstrap.rst deleted file mode 100644 index 051d931d2..000000000 --- a/docs/quick_tutorial/rest_bootstrap.rst +++ /dev/null @@ -1,88 +0,0 @@ -========================================= -27: Beginning REST with Twitter Bootstrap -========================================= - -Begin making a REST application by adding Twitter Bootstrap, jQuery, -and a common layout. - -Objectives -========== - -- Switch to Jinja2 - -- Make a "layout" that is shared between templates - -- Introduce jQuery and Twitter Bootstrap as well as local static - resources - -Steps -===== - -#. We are going to use the previous step as our starting point: - - .. code-block:: bash - - (env27)$ cd ..; cp -r traversal_zodb rest_bootstrap; cd rest_bootstrap - (env27)$ mkdir tutorial/static; mkdir tutorial/templates - -#. Introduce ``pyramid_jinja2`` dependency in - ``rest_bootstrap/setup.py``: - - .. literalinclude:: rest_bootstrap/setup.py - :linenos: - -#. We can now install our project: - - .. code-block:: bash - - (env27)$ python setup.py develop - -#. Modify our ``rest_bootstrap/development.ini`` to include - ``pyramid_jinja2`` configuration: - - .. literalinclude:: rest_bootstrap/development.ini - :language: ini - :linenos: - -#. Our startup code in ``rest_bootstrap/tutorial/__init__.py`` gets - a static view: - - .. literalinclude:: rest_bootstrap/tutorial/__init__.py - :linenos: - -#. Our home view in ``rest_bootstrap/tutorial/views.py`` references - a Jinja2 template: - - .. literalinclude:: rest_bootstrap/tutorial/views.py - :linenos: - -#. Our site template in - ``rest_bootstrap/tutorial/templates/site.jinja2`` - references a master layout: - - .. literalinclude:: rest_bootstrap/tutorial/templates/site.jinja2 - :language: html - :linenos: - -#. Add the master layout template in - ``rest_bootstrap/tutorial/templates/layout.jinja2``: - - .. literalinclude:: rest_bootstrap/tutorial/templates/layout.jinja2 - :language: html - :linenos: - -#. A small amount of stying in - ``rest_bootstrap/tutorial/static/site.css``: - - .. literalinclude:: rest_bootstrap/tutorial/static/site.css - :language: css - :linenos: - -#. Run your Pyramid application with: - - .. code-block:: bash - - (env27)$ pserve development.ini --reload - -#. Open ``http://localhost:6543/`` in your browser. - |
