class documentation

class MultiFileLayout(DirLayoutBase): (source)

View In Hierarchy

Layout that maps pages to files in a folder similar to how a notebook is stored.

Layout:

  dir/
   `--> _resources/
   `--> page.html
   `--> page/
         `--> attachment.png

The root for relative links is "dir/"

Method __init__ No summary
Method page_file No summary
Instance Variable dir Undocumented
Instance Variable ext Undocumented
Instance Variable namespace Undocumented
Instance Variable relative_root Undocumented

Inherited from DirLayoutBase:

Method attachments_dir No summary
Method resources_dir Returns the folder for template resources @returns: a Dir object
def __init__(self, dir, ext, namespace=None): (source)
Constructor
Parameters
dira Dir object
extthe file extension to be used, e.g. 'html'
namespaceoptional namespace prefix to strip from page names
def page_file(self, page): (source)
Returns the file for a page
Parameters
pagea Page or Path object
Returns
a File object
Raises
ValueErrorif page can not be mapped
Unknown Field: implementation
must be implemented by subclasses

Undocumented

Undocumented

namespace = (source)

Undocumented

relative_root = (source)