Changeset 14:61694776afbb
- Timestamp:
- 05/29/08 13:19:07 (7 months ago)
- Author:
- richard.davies@…
- Branch:
- default
- Tags:
- RELEASE_0.10
- Message:
-
Update test.py to work on Genshi 0.4.4
- Files:
-
Legend:
- Unmodified
- Added
- Removed
-
|
r0
|
r14
|
|
| 4 | 4 | print GHRMLTemplate(""" |
| 5 | 5 | |
| 6 | | - foo = 42 |
| 7 | | |
| 8 | 6 | %html |
| 9 | 7 | [def bar()] 42 |
| 10 | 8 | |
| 11 | 9 | %head |
| 12 | | %title $title - $foo |
| | 10 | %title $title |
| 13 | 11 | |
| 14 | 12 | %body |
| … |
… |
|
| 19 | 17 | ${bar()} |
| 20 | 18 | |
| 21 | | """).generate(title="Page Title", seq=range(10)).render("html", doctype='html') |
| | 19 | """).generate(title="Page Title", seq=range(10)).render("xhtml", doctype='xhtml') |