root / pycommunity / pycommunity / doc / recipe.txt

Revision 78:b5dabe9762d1, 0.7 kB (checked in by Tarek Ziad?? <tarek@…>, 15 months ago)

rupy slides, starting up

Line 
1======
2recipe
3======
4
5`recipe` provides a task to create html recipes out of
6reST files.
7
8`RecipeTask` knows how to process a recipe folder, rendering each recipe
9it founds::
10
11    >>> from recipe import RecipeTask
12    >>> class Conf(object):
13    ...     targets = {'target1': 'tests/www'}
14    ...     tutorials = {'recipes': 'tests/svn/project/tutorials'}   
15    ...     recipes = {'recipes': 'tests/svn/project/recipes'}   
16    ...     templates = {'recipe': 'tests/templates/recipe.pt',
17    ...                  'recipelist': 'tests/templates/recipelist.pt'}
18    ...     glossary = 'tests/svn/project/doc/glossary.txt'
19    ...
20    >>> task = RecipeTask()
21    >>> task._run(Conf())
22
Note: See TracBrowser for help on using the browser.