Fixed environment var name due to typo.
This commit is contained in:
parent
c849c01363
commit
ab4a3ef61b
1 changed files with 3 additions and 3 deletions
|
|
@ -85,7 +85,7 @@ class Render():
|
||||||
filters to the ODF render.
|
filters to the ODF render.
|
||||||
|
|
||||||
engine = Render('template.odt')
|
engine = Render('template.odt')
|
||||||
engine.enviroment.filters['custom_filer'] = filter_function
|
engine.environment.filters['custom_filer'] = filter_function
|
||||||
result = engine.render()
|
result = engine.render()
|
||||||
|
|
||||||
Basic use example:
|
Basic use example:
|
||||||
|
|
@ -102,9 +102,9 @@ class Render():
|
||||||
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def enviroment(self):
|
def environment(self):
|
||||||
return self._environment
|
return self._environment
|
||||||
@enviroment.setter
|
@environment.setter
|
||||||
def enviroment(self, value):
|
def enviroment(self, value):
|
||||||
self._environment = value
|
self._environment = value
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue