Skip to content

Commit

Permalink
improved templates doc
Browse files Browse the repository at this point in the history
  • Loading branch information
tsilva committed Nov 5, 2014
1 parent 6ce4966 commit f521632
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 16 deletions.
18 changes: 5 additions & 13 deletions doc/templates.md
Expand Up @@ -33,19 +33,11 @@ The ``list_cats`` handler in this example would render the template in
complete, we would need to retrieve the cats and use them in the template:
```python
import appier
import models
class CatController(appier.Controller):
@appier.route("/cats", "GET")
def list_cats(self):
cats = models.Cat.find()
return self.template(
"cats/list.html.tpl",
cats = cats
)
cats = models.Cat.find()
return self.template(
"cats/list.html.tpl",
cats = cats
)
```
Any keyword arguments passed to the ``template`` method become available in the template:
Expand Down
6 changes: 3 additions & 3 deletions readme.md
Expand Up @@ -45,14 +45,14 @@ For the purposes of rapid web development, Appier goes well with [Netius](http:/

## Learn more

* [Configuration](doc/configuration.md)
* [Requests](doc/requests.md)
* [Templates](doc/templates.md)
* [Models](doc/models.md)
* [Events](doc/events.md)
* [Configuration](doc/configuration.md)
* [Internationalization](doc/i18n.md)
* [Logging](doc/logging.md)
* [Email](doc/email.md)
* [Templates](doc/templates.md)
* [Internationalization](doc/i18n.md)

More information can be found in the [Advanced Topics](doc/advanced.md) page.

Expand Down

0 comments on commit f521632

Please sign in to comment.