1. fero14041
  2. mako-benchmark-add_jinja

Commits

Show all
Author Commit Message Date Builds
Mike Bayer
- added "preprocessor" argument to Template, TemplateLookup - is a single callable or list of callables which will be applied to the template text before lexing. given the text as an argument, returns the new text. - added mako.ext.preprocessors package, contains one preprocessor so far: 'convert_comments', which will convert single # comments to the new ## format
Tags
rel_0_1_3
Mike Bayer
fixed comment to new style
Mike Bayer
- added lexer error for unclosed control-line (%) line
Mike Bayer
multiline comment syntax now <%doc>
Mike Bayer
- improvement to scoping of "caller" variable when using <%call> tag
Mike Bayer
- fix to text parsing to not yank "#" on the first col of the line - doc adjustments, changeset adjustments, modified unicode tests to use ## instead of # for magic encoding comment. # will still work for now. - unsure whether we are going with #* *# or <%doc> for multiline comments, looking like <%doc>.
Mike Bayer
got the multiline comments to highlight
Mike Bayer
comments moved to "##" "#* *#" syntax. still have to get pygment plugin to work.
Mike Bayer
- UNDEFINED evaluates to False
bbangert
Fixing conditional to properly check templatename.
Mike Bayer
0.1.2
Tags
rel_0_1_2
Mike Bayer
- got "top level" def calls to work, i.e. template.get_def("somedef").render()
Mike Bayer
updates
Mike Bayer
changed around filtering so you can just say "decode.utf8" or "decode.<whatever>" for generic expression decoding
Mike Bayer
docs, added the unicode chapter
Mike Bayer
- all template lexing converts the template to unicode first, to immediately catch any encoding issues and ensure internal unicode representation.
Mike Bayer
- support for CRLF templates...whoops ! welcome to all the windows users. [ticket:16] - cleanup in unit tests
Mike Bayer
fixed typo
Mike Bayer
- small fix to local variable propigation for locals that are conditionally declared
Mike Bayer
some expression generator things missing, fixes [ticket:18]
Mike Bayer
xtra test
Mike Bayer
- "expression_filter" argument in <%page> applies only to expressions - added "default_filters" argument to Template, TemplateLookup. applies only to expressions, gets prepended to "expression_filter" arg from <%page>. defaults to ["unicode"], so that all expressions get stringified into u'' by default (this is what Mako already does). By setting to [], expressions are passed through raw. - added "imports" argument to Template, TemplateLookup. so you can predefin…
Mike Bayer
unit tests for input_encoding, non double-decode of unicode object
Mike Bayer
- added optional input_encoding flag to Template, to allow sending a unicode() object with no magic encoding comment
Mike Bayer
platform independent path fixies
Mike Bayer
added getattr/hasattr test
Mike Bayer
- added module_filename argument to Template to allow specification of a specific module file - added modulename_callable to TemplateLookup to allow a function to determine module filenames (takes filename, uri arguments). used for [ticket:14]
Mike Bayer
- fix to parsing of code/expression blocks to insure that non-ascii characters, combined with a template that indicates a non-standard encoding, are expanded into backslash-escaped glyphs before being AST parsed [ticket:11]
Mike Bayer
0.1.1
Tags
rel_0_1_1
Mike Bayer
- buffet plugin supports string-based templates, allows ToscaWidgets to work [ticket:8]
  1. Prev
  2. Next