Page

Page - one note is a page.

class engine.page.Page(fn)[source]

Page class

Attributes:

fn - filename of the note, with .md md - md content of the note html - html content of the note
compile()[source]

Preprocess, compile, postprocess.

get_html()[source]

Compile md to get html

is_changed()[source]

Check if the file on disc is different than md.

Make PATH_TO_ORIG if it does not exists.

Return:
boolean
post_process()[source]

Do postprocessing

pre_process()[source]

Do preprocessing.

E.g.:

self.md = get_image_path(self.md) 
save()[source]

Save html file to the drive