diff options
| author | Chris McDonough <chrism@plope.com> | 2013-11-18 07:03:41 -0500 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2013-11-18 07:03:41 -0500 |
| commit | fb15c26a2960d5f7bf598c147f1dd6ad6a062952 (patch) | |
| tree | bf13d3a849854048d998d9b0c139d7f7f4797495 /docs/narr/scaffolding.rst | |
| parent | 94b754aac45e235b5b11a60489395b77c8195fdc (diff) | |
| parent | e3a1b2c8af41410fdc0bacaf0b695b71078cf0bf (diff) | |
| download | pyramid-fb15c26a2960d5f7bf598c147f1dd6ad6a062952.tar.gz pyramid-fb15c26a2960d5f7bf598c147f1dd6ad6a062952.tar.bz2 pyramid-fb15c26a2960d5f7bf598c147f1dd6ad6a062952.zip | |
Merge branch 'master' of github.com:Pylons/pyramid
Diffstat (limited to 'docs/narr/scaffolding.rst')
| -rw-r--r-- | docs/narr/scaffolding.rst | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/docs/narr/scaffolding.rst b/docs/narr/scaffolding.rst index 534b2caf4..f924d0d62 100644 --- a/docs/narr/scaffolding.rst +++ b/docs/narr/scaffolding.rst @@ -39,9 +39,9 @@ named ``__init__.py`` with something like the following: from pyramid.scaffolds import PyramidTemplate - class CoolExtensionTemplate(PyramidTemplate): - _template_dir = 'coolextension_scaffold' - summary = 'My cool extension' + class CoolExtensionTemplate(PyramidTemplate): + _template_dir = 'coolextension_scaffold' + summary = 'My cool extension' Once this is done, within the ``scaffolds`` directory, create a template directory. Our example used a template directory named @@ -89,7 +89,7 @@ For example: [pyramid.scaffold] coolextension=coolextension.scaffolds:CoolExtensionTemplate """ - ) + ) Run your distribution's ``setup.py develop`` or ``setup.py install`` command. After that, you should be able to see your scaffolding template @@ -112,7 +112,7 @@ want to have extension scaffolds that can work across Pyramid 1.0.X, 1.1.X, defining your scaffold template: .. code-block:: python - :linenos: + :linenos: try: # pyramid 1.0.X # "pyramid.paster.paste_script..." doesn't exist past 1.0.X |
