Python

Flask

3 thoughts
last posted May 1, 2017, 9:04 p.m.
0
get stream as: markdown or atom
0

Includes are for duplicated pieces of HTML used across templates.

Macros are when you want to parametrise the generated output.

0

You can use the path type in a route annotation to access a segment of the path in the URL that includes forward slashes.

This can then be split and turned into a map to access variable path keys.

0

Filters can be used through an annotation or they can be declared directly in the application config section for Jinja2.