summaryrefslogtreecommitdiff
path: root/docs/narr/project.rst
diff options
context:
space:
mode:
authorBlaise Laflamme <blaise@laflamme.org>2010-11-28 12:28:30 -0500
committerBlaise Laflamme <blaise@laflamme.org>2010-11-28 12:29:25 -0500
commit16cd50c1a5beef98c3297d105c1ccffccb8872c5 (patch)
treea42f0b082048c13916d48ca23719ec8d78074642 /docs/narr/project.rst
parent099ac84208c019300174c0c8722cff7687bb43ca (diff)
downloadpyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.tar.gz
pyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.tar.bz2
pyramid-16cd50c1a5beef98c3297d105c1ccffccb8872c5.zip
Normalized narrative doc, code with linenos while text+bash don't
Diffstat (limited to 'docs/narr/project.rst')
-rw-r--r--docs/narr/project.rst5
1 files changed, 4 insertions, 1 deletions
diff --git a/docs/narr/project.rst b/docs/narr/project.rst
index 1758e9d00..b2b0931b6 100644
--- a/docs/narr/project.rst
+++ b/docs/narr/project.rst
@@ -257,7 +257,7 @@ points to *your application* as opposed to any other section within the
``.ini`` file. For example, if your application ``.ini`` file might have a
``[app:MyProject]`` section that looks like so:
-.. code-block:: guess
+.. code-block:: ini
:linenos:
[app:MyProject]
@@ -930,6 +930,7 @@ Then change the __init__.py of your myproject project (*not* the
parent directory). For example, from something like:
.. code-block:: python
+ :linenos:
config.add_view('myproject.views.my_view',
renderer='myproject:templates/mytemplate.pt')
@@ -937,6 +938,7 @@ parent directory). For example, from something like:
To this:
.. code-block:: python
+ :linenos:
config.add_view('myproject.views.blogs.my_view',
renderer='myproject:templates/mytemplate.pt')
@@ -946,6 +948,7 @@ views or handler classes/functions within those files via the dotted name
passed as the first argument to ``add_view``. For example:
.. code-block:: python
+ :linenos:
config.add_view('myproject.views.anothermodule.my_view',
renderer='myproject:templates/anothertemplate.pt')