Permalink
Browse files

Small change in the first doc page to demonstrate group operations on…

… the example.
  • Loading branch information...
1 parent 46b9cb3 commit 64bc52ca759475263d8509e9186ae1bc73768295 @ironfroggy committed Jul 2, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 docs/index.rst
View
@@ -34,6 +34,10 @@ straight forward.
plugins = load('myplugins', subclasses=FileHandler)
+ handlers = plugins.produce()
+ for line in open(filename):
+ print handlers.pipe(line)
+
Plugins are found from a :term:`namespace`, which means the above example
will look for plugins in modules you could access by importing ``myplugins.this``
or ``myplugins.that``, where the modules exist under the ``myplugins``
@@ -50,6 +54,7 @@ for them, adding new functionality and behavior without any change on your
part, and allowing users to customize their setup by what plugins they
install in their envrionment. You can even split up your project, and
release some components as optional additions to your core package.
+
Getting Started
===============

0 comments on commit 64bc52c

Please sign in to comment.