=====
index
=====
`IndexView` provides a class that generates the index, using
a cheetah template::
>>> from index import IndexView
>>> options = {'projectname': 'PyCommunity',
... 'index': 'tests/svn/project/doc/README.txt'}
>>> view = IndexView('tests/templates/index.pt', options)
>>> print view()
...
PyCommunity documentation center
...
`IndexTask` provides a task that can be used in the generator::
>>> from index import IndexTask
>>> class Conf(object):
... targets = {'target1': 'tests/www'}
... templates = {'index': 'tests/templates/index.pt',
... 'css': 'tests/templates/pycommunity.css',
... 'js': 'tests/templates/pycommunity.js'}
... media = 'tests/templates/media'
... options = {'projectname': 'PyCommunity',
... 'index': 'tests/svn/project/doc/README.txt'}
...
>>> task = IndexTask()
>>> task._run(Conf())