diff options
| author | Chris McDonough <chrism@plope.com> | 2011-09-07 06:52:22 -0400 |
|---|---|---|
| committer | Chris McDonough <chrism@plope.com> | 2011-09-07 06:52:22 -0400 |
| commit | 2bf587e2975063ae402f3d543fbbbf9dfff86383 (patch) | |
| tree | 547db56c14c8d9c95c249a7b4fc929df28099560 /docs/narr | |
| parent | d8fc16f447c1a9ac91a24bb41f56a534706dfe41 (diff) | |
| download | pyramid-2bf587e2975063ae402f3d543fbbbf9dfff86383.tar.gz pyramid-2bf587e2975063ae402f3d543fbbbf9dfff86383.tar.bz2 pyramid-2bf587e2975063ae402f3d543fbbbf9dfff86383.zip | |
typo
Diffstat (limited to 'docs/narr')
| -rw-r--r-- | docs/narr/introduction.rst | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/docs/narr/introduction.rst b/docs/narr/introduction.rst index 9c6f85680..5f4e3c13b 100644 --- a/docs/narr/introduction.rst +++ b/docs/narr/introduction.rst @@ -116,7 +116,7 @@ prototyping, bug reproduction, and very small applications. These applications are easy to understand because all the information about the application lives in a single place, and you can deploy them without needing to understand much about Python distributions and packaging. Pyramid isn't -really marketed as a "microframework", but it allows you to do almost +really marketed as a microframework, but it allows you to do almost everything that frameworks that are marketed as "micro" offer in very similar ways. @@ -134,16 +134,16 @@ decorators to localize the configuration. For example:: def fred_view(request): return Response('fred') -However, unlike other systems (various "microframeworks" come to mind), using -decorators for configuration does not make your application difficult, -extend, test or reuse. The ``view_config`` decorator, for example, does not -actually *change* the input or output of the function it decorates, so -testing it is a "WYSIWYG" operation; you don't need to understand the -framework to test your own code, you just behave as if the decorator is not -there. You can also instruct Pyramid to ignore some decorators, or use -completely imperative configuration instead of decorators to add views. -Pyramid decorators are inert instead of eager: you detect and activate them -with a ``scan``. They're basically just markers. +However, unlike some other systems, using decorators for Pyramid +configuration does not make your application difficult to extend, test or +reuse. The ``view_config`` decorator, for example, does not actually +*change* the input or output of the function it decorates, so testing it is a +"WYSIWYG" operation; you don't need to understand the framework to test your +own code, you just behave as if the decorator is not there. You can also +instruct Pyramid to ignore some decorators, or use completely imperative +configuration instead of decorators to add views. Pyramid decorators are +inert instead of eager: you detect and activate them with a ``scan``. +They're basically just markers. Example: :ref:`mapping_views_using_a_decorator_section`. |
