Update doc string.
This commit is contained in:
parent
c81d5768aa
commit
74175c570a
1 changed files with 9 additions and 7 deletions
16
secretary.py
16
secretary.py
|
|
@ -68,17 +68,19 @@ def pad_string(value, length=5):
|
||||||
class Render(object):
|
class Render(object):
|
||||||
"""
|
"""
|
||||||
Main engine to convert and ODT document into a jinja
|
Main engine to convert and ODT document into a jinja
|
||||||
compatible template. Render provides an enviroment
|
compatible template.
|
||||||
variable which can be manipulated to provide custom
|
|
||||||
filters to the ODF render.
|
|
||||||
|
|
||||||
engine = Render('template.odt')
|
|
||||||
engine.environment.filters['custom_filer'] = filter_function
|
|
||||||
result = engine.render()
|
|
||||||
|
|
||||||
Basic use example:
|
Basic use example:
|
||||||
engine = Render('template')
|
engine = Render('template')
|
||||||
result = engine.render()
|
result = engine.render()
|
||||||
|
|
||||||
|
|
||||||
|
Render provides an enviroment variable which can be used
|
||||||
|
to provide custom filters to the ODF render.
|
||||||
|
|
||||||
|
engine = Render('template.odt')
|
||||||
|
engine.environment.filters['custom_filer'] = filter_function
|
||||||
|
result = engine.render()
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue