class documentation

class StaticExportLinker(ExportLinker): (source)

View In Hierarchy

This linker can be used when exporting a page to e.g. html without a file to write the html to. All links are resolved statically to the source files.
Method __init__ No summary

Inherited from ExportLinker:

Method file_object Turn a File object in a relative link or URI
Method img Returns an url for image file 'src'
Method link Returns an url for a link in a zim page This method is used to translate links of any type.
Method page_object Turn a Path object in a relative link or URI
Method resolve_dest_file Find the destination file for an attachment @returns: a File object
Method resolve_source_file No summary
Method resource Return an url for template resources
Instance Variable base Undocumented
Instance Variable document_root_url Undocumented
Instance Variable layout Undocumented
Instance Variable notebook Undocumented
Instance Variable output Undocumented
Instance Variable source Undocumented
Instance Variable usebase Undocumented
Method _link_file Undocumented
Method _link_interwiki Undocumented
Method _link_mailto Undocumented
Method _link_notebook Undocumented
Method _link_page Undocumented
Method _resolve_file Undocumented
def __init__(self, notebook, resources_dir=None, source=None): (source)
Contructor
Parameters
notebookthe source Notebook for resolving links
resources_dirUndocumented
sourceis the Path of the source page being exported
layoutthe ExportLayout for resolving target files
outputis a File object for the destination file
usebaseif True the format allows returning relative paths
document_root_urloptional URL for the document root