<%inherit file="base.html"/>
<%page args="toc, extension, paged"/>
<%namespace  name="formatting" file="formatting.html"/>
<%namespace  name="nav" file="nav.html"/>
<%namespace name="pydoc" file="pydoc.html"/>
<%!
    import cPickle as pickle
    import os
%>
<%
    current = toc.get_by_file(self.template.module.filename)
    docfile = os.path.join(os.path.dirname(self.filename), 'compiled_docstrings.pickle')
    data = dict(pickle.load(file(docfile)))
    data = data[self.template.module.docstring]
%>

<%def name="style()">
    ${parent.style()}
    <link rel="stylesheet" href="docutil.css"></link>
</%def>

${nav.topnav(item=current, toc=toc, extension=extension, paged=True)}

${pydoc.obj_doc(obj=data, toc=toc, extension=extension, paged=True)}

${nav.bottomnav(item=current, extension=extension, paged=True)}

