summaryrefslogtreecommitdiff
path: root/docs/narr
diff options
context:
space:
mode:
authorChris McDonough <chrism@plope.com>2011-07-20 07:31:33 -0400
committerChris McDonough <chrism@plope.com>2011-07-20 07:31:33 -0400
commitbe9bbff6440750e56a73f534bc09511ef5d2b8b4 (patch)
tree4f0549b06cc700c69bf58eea0c691e51a5374df8 /docs/narr
parent8cb68208d42899b50025418812bb339f578d553f (diff)
downloadpyramid-be9bbff6440750e56a73f534bc09511ef5d2b8b4.tar.gz
pyramid-be9bbff6440750e56a73f534bc09511ef5d2b8b4.tar.bz2
pyramid-be9bbff6440750e56a73f534bc09511ef5d2b8b4.zip
use less awkward language
Diffstat (limited to 'docs/narr')
-rw-r--r--docs/narr/configuration.rst26
1 files changed, 17 insertions, 9 deletions
diff --git a/docs/narr/configuration.rst b/docs/narr/configuration.rst
index 3ecb4b06a..dacf09f18 100644
--- a/docs/narr/configuration.rst
+++ b/docs/narr/configuration.rst
@@ -6,15 +6,16 @@
Application Configuration
=========================
-The way in which code is plugged in to :app:`Pyramid` for a specific
-application is referred to as "configuration". Most people understand
-"configuration" as coarse settings that inform the high-level operation of a
-specific application deployment. For instance, it's easy to think of the
-values implied by a ``.ini`` file parsed at application startup time as
-"configuration". However, :app:`Pyramid` also uses the word "configuration"
-to express standardized ways that code gets plugged into a deployment of the
-framework itself. When you plug code into the :app:`Pyramid` framework, you
-are "configuring" :app:`Pyramid` to create a particular application.
+Most people already understand "configuration" as settings that influence the
+operation of an application. For instance, it's easy to think of the values
+in a ``.ini`` file parsed at application startup time as "configuration".
+However, if you're reasonably open-minded, it's easy to think of *code* as
+configuration too. Since Pyramid, like most other web application platforms,
+is a *framework*, it calls into code that you write (as opposed to a
+*library*, which is code that exists purely for your to call). The act of
+plugging application code that you've written into :app:`Pyramid` is also
+referred to within this documentation as "configuration"; you are configuring
+:app:`Pyramid` to call the code that makes up your application.
There are two ways to configure a :app:`Pyramid` application:
:term:`imperative configuration` and :term:`declarative configuration`. Both
@@ -144,3 +145,10 @@ In the example above, the scanner translates the arguments to
config.add_view(hello)
+Summary
+-------
+
+There are two ways to configure a :app:`Pyramid` application: declaratively
+and imperatively. You can choose the mode you're most comfortable with; both
+are completely equivalent. Examples in this documentation will use both
+modes interchangeably.