Merge pull request #11 from michalczaplinski/master
crucial spelling in readme updated. Thanks to @michalczaplinski.
This commit is contained in:
commit
6d4d860b2a
1 changed files with 4 additions and 4 deletions
|
|
@ -15,7 +15,7 @@ Rendered documents are produced in ODT format, and can then be converted to PDF,
|
||||||
|
|
||||||
## Rendering a Template
|
## Rendering a Template
|
||||||
|
|
||||||
from secreatary import Render
|
from secretary import Renderer
|
||||||
|
|
||||||
engine = Renderer()
|
engine = Renderer()
|
||||||
result = engine.render(template, foo=foo, bar=bar)
|
result = engine.render(template, foo=foo, bar=bar)
|
||||||
|
|
@ -26,7 +26,7 @@ To render a template create an instance of class `Renderer` and call the instanc
|
||||||
|
|
||||||
Before rendering a template, you can configure the internal templating engine using the `Renderer` instance's variable `environment`, which is an instance of jinja2 **[Environment][3]** class. For example, to declare a custom filter use:
|
Before rendering a template, you can configure the internal templating engine using the `Renderer` instance's variable `environment`, which is an instance of jinja2 **[Environment][3]** class. For example, to declare a custom filter use:
|
||||||
|
|
||||||
from secreatary import Renderer
|
from secretary import Renderer
|
||||||
|
|
||||||
engine = Renderer()
|
engine = Renderer()
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ Since the default media loader is very limited. Users can provide theirs own med
|
||||||
|
|
||||||
Example declaring a media loader:
|
Example declaring a media loader:
|
||||||
```python
|
```python
|
||||||
from secreatary import Renderer
|
from secretary import Renderer
|
||||||
|
|
||||||
engine = Renderer()
|
engine = Renderer()
|
||||||
|
|
||||||
|
|
@ -165,4 +165,4 @@ Secretary supports most of the jinja2 control structure/flow tags. But please av
|
||||||
|
|
||||||
[1]: http://jinja.pocoo.org/docs/templates/
|
[1]: http://jinja.pocoo.org/docs/templates/
|
||||||
[2]: https://github.com/mirkonasato/pyodconverter
|
[2]: https://github.com/mirkonasato/pyodconverter
|
||||||
[3]: http://jinja.pocoo.org/docs/api/#jinja2.Environment
|
[3]: http://jinja.pocoo.org/docs/api/#jinja2.Environment
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue