summaryrefslogtreecommitdiff
path: root/docs/narr/scaffolding.rst
diff options
context:
space:
mode:
authorMichael Merickel <michael@merickel.org>2013-04-05 07:56:58 -0700
committerMichael Merickel <michael@merickel.org>2013-04-05 07:56:58 -0700
commitdc272d12ec4fd9b8b3b54889b2ff9c7e5e3b8bd4 (patch)
tree33adc604821eb7df739347907fb99be240619667 /docs/narr/scaffolding.rst
parent84e455cf7c8d9cbfe6658548a61af2ecbbc1749e (diff)
parent5e28d6fa6f2add7bd82aecad45f24c7c4672a253 (diff)
downloadpyramid-dc272d12ec4fd9b8b3b54889b2ff9c7e5e3b8bd4.tar.gz
pyramid-dc272d12ec4fd9b8b3b54889b2ff9c7e5e3b8bd4.tar.bz2
pyramid-dc272d12ec4fd9b8b3b54889b2ff9c7e5e3b8bd4.zip
Merge pull request #970 from tshepang/diff
fix some cross-references and markup
Diffstat (limited to 'docs/narr/scaffolding.rst')
-rw-r--r--docs/narr/scaffolding.rst10
1 files changed, 7 insertions, 3 deletions
diff --git a/docs/narr/scaffolding.rst b/docs/narr/scaffolding.rst
index 9ac579a87..0d1e3f448 100644
--- a/docs/narr/scaffolding.rst
+++ b/docs/narr/scaffolding.rst
@@ -74,11 +74,15 @@ 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::
+.. code-block:: python
+
def setup(
...,
entry_points = """\
@@ -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.