class FileLayout(DirLayoutBase): (source)
Layout that maps pages to files in a folder with one specific page as the top level file. Use to export sub-tree of a notebook.
Layout:
page.html page_files/ `--> attachment.png `--> subpage.html `--> subpage/attachment.pdf `--> _resources/
The root for relative links is the parent folder of "page.html" and "page_files/"
| Method | __init__ |
No summary |
| Method | page_file |
No summary |
| Instance Variable | dir |
Undocumented |
| Instance Variable | ext |
Undocumented |
| Instance Variable | file |
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 |
| Parameters | |
| page | a Page or Path object |
| Returns | |
a File object | |
| Raises | |
ValueError | if page can not be mapped |
| Unknown Field: implementation | |
| must be implemented by subclasses | |