- added "bytestring passthru" mode, via `disable_unicode=True`
argument passed to Template or TemplateLookup. All unicode-awareness and filtering is turned off, and template modules are generated with the appropriate magic encoding comment. In this mode, template expressions can only receive raw bytestrings or Unicode objects which represent straight ASCII, and render_unicode() may not be used. [ticket:77] (courtesy anonymous guest)
Showing
- CHANGES 9 additions, 1 deletionCHANGES
- doc/build/content/filtering.txt 6 additions, 1 deletiondoc/build/content/filtering.txt
- doc/build/content/unicode.txt 41 additions, 2 deletionsdoc/build/content/unicode.txt
- doc/build/genhtml.py 1 addition, 1 deletiondoc/build/genhtml.py
- lib/mako/codegen.py 16 additions, 8 deletionslib/mako/codegen.py
- lib/mako/filters.py 1 addition, 0 deletionslib/mako/filters.py
- lib/mako/lexer.py 4 additions, 4 deletionslib/mako/lexer.py
- lib/mako/lookup.py 3 additions, 3 deletionslib/mako/lookup.py
- lib/mako/runtime.py 1 addition, 1 deletionlib/mako/runtime.py
- lib/mako/template.py 18 additions, 9 deletionslib/mako/template.py
- test/template.py 22 additions, 2 deletionstest/template.py
- test_htdocs/chs_unicode.html 11 additions, 0 deletionstest_htdocs/chs_unicode.html
- test_htdocs/chs_utf8.html 11 additions, 0 deletionstest_htdocs/chs_utf8.html
Loading
Please register or sign in to comment