summaryrefslogtreecommitdiff
path: root/docs/narr/scaffolding.rst
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2013-05-21 15:32:01 -0400
committerChris McDonough <chrism@plope.com>2013-05-21 15:32:01 -0400
commit1f0106e2debcfc82e17c55385ce9a01985ae458c (patch)
treed51720ba9314c23d0a7e9f5d7a6e9d7f238bf24b /docs/narr/scaffolding.rst
parentd64fa6136d0dec6717b273362de548d8f3bf47e8 (diff)
parentd037a9d47b6dd8fe6da88c6a6e26ceefcfe00fc9 (diff)
downloadpyramid-1f0106e2debcfc82e17c55385ce9a01985ae458c.tar.gz
pyramid-1f0106e2debcfc82e17c55385ce9a01985ae458c.tar.bz2
pyramid-1f0106e2debcfc82e17c55385ce9a01985ae458c.zip
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/scaffolding.rst')
-rw-r--r--docs/narr/scaffolding.rst12
1 files changed, 8 insertions, 4 deletions
diff --git a/docs/narr/scaffolding.rst b/docs/narr/scaffolding.rst
index 9ac579a87..534b2caf4 100644
--- a/docs/narr/scaffolding.rst
+++ b/docs/narr/scaffolding.rst
@@ -74,10 +74,14 @@ concrete examples of scaffold directories (``zodb``, ``alchemy``, and
After you've created the template directory, add the following to the
``entry_points`` value of your distribution's ``setup.py``:
- [pyramid.scaffold]
- coolextension=coolextension.scaffolds:CoolExtensionTemplate
+.. code-block:: ini
+
+ [pyramid.scaffold]
+ coolextension=coolextension.scaffolds:CoolExtensionTemplate
-For example::
+For example:
+
+.. code-block:: python
def setup(
...,
@@ -95,7 +99,7 @@ because that's the name we gave it in the entry point setup. Running
output directory named ``MyStuff``.
See the module documentation for :mod:`pyramid.scaffolds` for information
-about the API of the :class:`pyramid.scaffolds.PyramidScaffold` class and
+about the API of the :class:`pyramid.scaffolds.Template` class and
related classes. You can override methods of this class to get special
behavior.