Releases: sqlalchemy/mako
0.1.4
0.1.4
Released: Sat Mar 10 2007
-
got defs-within-defs to be cacheable
-
fixes to code parsing/whitespace adjusting where plain python comments
may contain quote charactersReferences: #23
-
fix to variable scoping for identifiers only referenced within
functions -
added a path normalization step to lookup so URIs like
"/foo/bar/../etc/../foo" pre-process the ".." tokens before checking
the filesystem -
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 -
<%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.) -
<%include> plus arguments is also programmatically available via
self.include_file(, **kwargs) -
further escaping added for multibyte expressions in %def, %call
attributesReferences: #24
0.1.3
0.1.3
Released: Wed Feb 21 2007
-
Small Syntax Change - the single line comment character is now
two hash signs, i.e. "## this is a comment". This avoids a common
collection with CSS selectors. -
the magic "coding" comment (i.e. # coding:utf-8) will still work with
either one "#" sign or two for now; two is preferred going forward, i.e.coding:.
-
new multiline comment form: "<%doc> a comment </%doc>"
-
UNDEFINED evaluates to False
-
improvement to scoping of "caller" variable when using <%call> tag
-
added lexer error for unclosed control-line (%) line
-
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
0.1.2
0.1.2
Released: Thu Feb 1 2007
-
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
parsedReferences: #11
-
all template lexing converts the template to unicode first, to
immediately catch any encoding issues and ensure internal unicode
representation. -
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 forReferences: #14
-
added optional input_encoding flag to Template, to allow sending a
unicode() object with no magic encoding comment -
"expression_filter" argument in <%page> applies only to expressions
-
["unicode"] added "default_filters" argument to Template, TemplateLookup. applies only
to expressions, gets prepended to "expression_filter" arg from <%page>.
defaults to, 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 predefine
a list of import statements at the top of the template. can be used in
conjunction with default_filters. -
support for CRLF templates...whoops ! welcome to all the windows users.
References: #16
-
small fix to local variable propigation for locals that are conditionally
declared -
got "top level" def calls to work, i.e. template.get_def("somedef").render()
0.1.1
0.1.1
Released: Sun Jan 14 2007
-
buffet plugin supports string-based templates, allows ToscaWidgets to work
References: #8
-
AST parsing fixes: fixed TryExcept identifier parsing
-
removed textmate tmbundle from contrib and into separate SVN location;
windows users cant handle those files, setuptools not very good at
"pruning" certain directories -
fix so that "cache_timeout" parameter is propigated
-
fix to expression filters so that string conversion (actually unicode)
properly occurs before filtering -
better error message when a lookup is attempted with a template that has no
lookup -
implemented "module" attribute for namespace
-
fix to code generation to correctly track multiple defs with the same name
-
"directories" can be passed to TemplateLookup as a scalar in which case it
gets converted to a listReferences: #9