ipypublish.templates.create_template module¶
create template
philosophy is only turn stuff on when we want
http://nbconvert.readthedocs.io/en/latest/customizing.html#Template-structure http://nbconvert.readthedocs.io/en/latest/api/exporters.html#nbconvert.exporters.TemplateExporter
-
ipypublish.templates.create_template.
create_template
(outline_template, outline_name, segment_datas, outpath=None)[source]¶ build a latex jinja template from;
a jinja(2) template outline, which may contain segment placeholders,
and json segment files adhering to the segment.schema.json schema
if a segment contains the key “overwrite”, then its value should be a list of keys, such that these key values overwrite any entries before
-
ipypublish.templates.create_template.
multireplace
(string, replacements)[source]¶ Given a string and a replacement map, it returns the replaced string.
From https://gist.github.com/bgusach/a967e0587d6e01e889fd1d776c5f3729