examples/bench/jinja2_inheritance/base.html
raw| 1 | <!DOCTYPE html |
| 2 | PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" |
| 3 | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 4 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en"> |
| 5 | <head> |
| 6 | <title>{{ title }}</title> |
| 7 | </head> |
| 8 | <body> |
| 9 | |
| 10 | {%- macro greeting(name) %} |
| 11 | <p>hello {{ name }}</p> |
| 12 | {%- endmacro %} |
| 13 | |
| 14 | <div id="header"> |
| 15 | <h1>{{ title }}</h1> |
| 16 | </div> |
| 17 | |
| 18 | {%- block body %}{%- endblock %} |
| 19 | |
| 20 | <div id="footer"> |
| 21 | </div> |
| 22 | |
| 23 | </body> |
| 24 | </html> |