Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
0.1.4 prep
Tags
rel_0_1_4
Mike Bayer
- <%include> plus arguments is also programmatically available via self.include_file(<filename>, **kwargs)
Mike Bayer
- further escaping added for multibyte expressions in %def, %call attributes [ticket:24]
Mike Bayer
correction for line=None [ticket:25]
Mike Bayer
- <%include> has an "args" attribute that can pass arguments to the called template (keyword arguments only, must be declared in that page's <%page> tag.)
Mike Bayer
added docs about traceback formatting
Mike Bayer
- fixed/improved "caller" semantics so that undefined caller is "UNDEFINED", propigates __nonzero__ method so it evaulates to False if not present, True otherwise. this way you can say % if caller:\n ${caller.body()}\n% endif
Mike Bayer
- added a path normalization step to lookup so URIs like "/foo/bar/../etc/../foo" pre-process the ".." tokens before checking the filesystem
Mike Bayer
further fix to previous ast enhancement; dont log identifiers as "declared" once we're traversing inside functions since they are local to the function.
Mike Bayer
- fix to variable scoping for identifiers only referenced within functions
Mike Bayer
- fixes to code parsing/whitespace adjusting where plain python comments may contain quote characters [ticket:23]
Mike Bayer
- got defs-within-defs to be cacheable
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
  1. Prev
  2. Next