| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| test_commands.py | ||
| test_context.py | ||
| test_examples.py | ||
| test_loader.py | ||
| test_pystache.py | ||
| test_simple.py | ||
| test_template.py | ||
| test_view.py |
From the issue:
The constructor `Template.__init__()` should accept an optional
`escape` function argument instead of the boolean `disable_escape`.
This is more natural.
Examples:
* Users wanting to disable escaping can pass `lambda s: s`.
* Non-markupsafe users wanting double-quotes escaped can pass
`lambda s: cgi.escape(s, True)`. The cgi.escape() function
doesn't escape double-quotes by default.
* Similarly, markupsafe users can specify an alternative to
`markupsafe.escape()`.
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| test_commands.py | Loading commit data... | |
| test_context.py | Loading commit data... | |
| test_examples.py | Loading commit data... | |
| test_loader.py | Loading commit data... | |
| test_pystache.py | Loading commit data... | |
| test_simple.py | Loading commit data... | |
| test_template.py | Loading commit data... | |
| test_view.py | Loading commit data... |