- Jul 08, 2011
-
-
Mike Bayer authored
[ticket:169]
-
- Apr 06, 2011
-
-
Mike Bayer authored
evaluates its contents in-place. Can be named or anonymous, the named version is intended for inheritance layouts where any given section can be surrounded by the <%block> tag in order for it to become overrideable by inheriting templates, without the need to specify a top-level <%def> plus explicit call. Modified scoping and argument rules as well as a more strictly enforced usage scheme make it ideal for this purpose without at all replacing most other things that defs are still good for. Lots of new docs. [ticket:164]
-
- Mar 22, 2011
-
-
Mike Bayer authored
for generating template bound stacktraces. Will stick to known template source lines without any extra guessing. [ticket:165]
-
- Feb 21, 2011
-
-
Mike Bayer authored
because a string and an ascii encoded string are of course different things, and we'd like render() by default to return a string. So go the other way, use FEB in all cases, add a new flag bytestring_passthrough which goes back to StringIO, to support that one guy who wanted to force a bytestring through in an expression.
-
Mike Bayer authored
it's internal _data dictionary, now include just what was specified to render() as well as Mako builtins 'caller', 'capture'. The contents of __builtin__ are no longer copied.
-
Mike Bayer authored
- The "output encoding" now defaults to "ascii", whereas previously it was set to None. This has the effect of FastEncodingBuffer being used internally by default when render() is called, instead of cStringIO or StringIO, which are slower, but allow bytestrings with unknown encoding to pass right through. It is of course not recommended to use bytestrings of unknown encoding. Usage of the "disable_unicode" mode also requires that output_encoding be set to None.
-
- Jan 19, 2011
-
-
Mike Bayer authored
-
- Nov 13, 2010
-
-
Mike Bayer authored
-
Mike Bayer authored
'' write in the case of backslash-ended lines. [ticket:155]
-
Mike Bayer authored
is delayed until actually needed; this to remove the performance penalty from startup, particularly for "single execution" environments such as shell scripts. [ticket:153]
-
- Nov 12, 2010
-
-
Mike Bayer authored
setup.py instead of "install_requires". This to produce a lighter weight install for those who don't use the caching as well as to conform to Pyramid deployment practices. [ticket:154]
-
Mike Bayer authored
setup.py which prevented setup.py from running 2to3 on install. [ticket:148]
-
- Nov 10, 2010
-
-
Mike Bayer authored
are considered "undefined", meaning they are pulled from the context, has been trimmed back to not include variables declared inside of expressions (i.e. from list comprehensions), as well as in the argument list of lambdas. This to better support the strict_undefined feature.
-
Mike Bayer authored
strict_undefined=True, will cause variables not found in the context to raise a NameError immediately, instead of defaulting to the UNDEFINED value.
-
- Oct 20, 2010
-
-
Mike Bayer authored
This to support GAE which can't run markupsafe. [ticket:151] No idea whatsoever if the install_requires in setup.py also breaks GAE, couldn't get an answer on this.
-
- Aug 11, 2010
-
-
Mike Bayer authored
such as <%foo:bar x="${...}">, now allow multiline Python expressions.
-
- Jun 30, 2010
-
-
Mike Bayer authored
for the `file` argument, i.e. with ${}. The `context` variable, if needed, must be referenced explicitly. [ticket:141] - Fixed previously non-covered regular expression, such that using a ${} expression inside of a tag element that doesn't allow them raises a CompileException instead of silently failing.
-
- Jun 22, 2010
-
-
Mike Bayer authored
i.e. in place of cgi.escape(). Faster C-based implementation and also escapes single quotes for additional security. Supports the __html__ attribute for the given expression as well. When using "disable_unicode" mode, a pure Python HTML escaper function is used which also quotes single quotes. Note that Pylons by default doesn't use Mako's filter - check your environment.py file.
-
Mike Bayer authored
exceptions.text_error_template which is not Py3k compatible. [ticket:137]
-
- May 31, 2010
-
-
Mike Bayer authored
such that if no traceback is passed and sys.exc_info() has been reset, the formatter just returns blank for the "traceback" portion. [ticket:135] - some long line cleanup
-
- Apr 28, 2010
-
-
Mike Bayer authored
where the source is stored temporarily is now made in the same directory as that of the .py file. This ensures that the two files share the same filesystem, thus avoiding cross-filesystem synchronization issues. Thanks to Charles Cazabon.
-
- Apr 17, 2010
-
-
Mike Bayer authored
line contains no line number, as in when inside an eval/exec-generated function. [ticket:132]
-
- Apr 13, 2010
-
-
Mike Bayer authored
template.last_modified
-
- Mar 24, 2010
-
-
Mike Bayer authored
exc.__class__.__name__ in html/text error templates when using Python 2.4 [ticket:131]
-
- Mar 11, 2010
-
-
Mike Bayer authored
template.get_def(...).render() now checks the argument signature the same way as it did in 0.2.5, so that TypeError is not raised. reopen of [ticket:116]
-
- Mar 07, 2010
-
-
Mike Bayer authored
[ticket:129]
-
- Mar 05, 2010
-
-
Mike Bayer authored
a given path that is a directory, not a filename, instead of passing through to the template to generate IOError. [ticket:73]
-
Mike Bayer authored
is passed only an absolute filename (i.e. with c: drive etc.) and no URI - the URI is converted to a forward-slash path and module_directory is treated as a windows path. [ticket:128]
-
Mike Bayer authored
uncommon feature, have been improved. The defs no longer get doubly-rendered in the body() scope, and now allow local variable assignment without breakage. [ticket:109]
-
Mike Bayer authored
inheriting template - the full set of render() arguments are passed down through the inherits chain. Undeclared arguments go into **pageargs as usual. [ticket:116]
-
Mike Bayer authored
% if: %endif, etc. [ticket:94] - finished cleanup for codegen.py, [ticket:98]
-
Mike Bayer authored
non-whitespace character on a line by escaping it as in "%%". [ticket:112]
-
Mike Bayer authored
text_error_template().render() now accept "error" and "traceback" as optional arguments, and these are now actually used. [ticket:122]
-
- Mar 04, 2010
-
-
Mike Bayer authored
- Python 3 support is added ! See README.py3k for installation and testing notes. [ticket:119]
-
- Mar 02, 2010
-
-
Mike Bayer authored
- Source code escaping has been simplified. In particular, module source files are now generated with the Python "magic encoding comment", and source code is passed through mostly unescaped, except for that code which is regenerated from parsed Python source. This fixes usage of unicode in <%namespace:defname> tags. [ticket:99]
-
- Feb 05, 2010
-
-
Mike Bayer authored
-
Mike Bayer authored
- start work on #98
-
- Jan 22, 2010
-
-
Philip Jenvey authored
html_error_template. fixes #88
-
- Nov 01, 2009
-
-
Philip Jenvey authored
cases
-
- Sep 22, 2009
-
-
Philip Jenvey authored
fixes #118
-