- Feb 15, 2013
-
-
Mike Bayer authored
from tuple to frozenset, as this is expected to be a set by default. [ticket:208]
-
- Nov 12, 2012
-
-
Mike Bayer authored
TemplateLookup, allows alternate Lexer classes to be used.
-
- Nov 11, 2012
-
-
Mike Bayer authored
-
- Nov 10, 2012
-
-
Mike Bayer authored
- changelog
-
- Nov 02, 2012
-
-
Mike Bayer authored
Markupsafe isn't installed, was using an inline-compiled regexp which causes major slowdowns on Python 3.3; is now precompiled.
-
- Sep 16, 2012
-
-
Mike Bayer authored
raise exception when non-existent plugin is specified.
-
- Aug 30, 2012
-
-
Mike Bayer authored
<%text> tag so that it pulls locally specified identifiers from the context the same way as that of <%block> and <%filter>.
-
- Aug 29, 2012
-
-
Mike Bayer authored
-
- Aug 03, 2012
-
-
Mike Bayer authored
function arguments inside pure-python def or lambda expressions. [ticket:201]
-
- Jul 20, 2012
-
-
Mike Bayer authored
parsing for Py2.4 was broken. [ticket:193]
-
- Jul 08, 2012
-
-
Mike Bayer authored
involving variables declared in defs and such, which only became apparent when the strict_undefined flag was turned on. [ticket:192]
-
Mike Bayer authored
same time args passed to def() are used by other elements of the <%def> tag. [ticket:191]
-
Mike Bayer authored
-
- Apr 03, 2012
-
-
Mike Bayer authored
now succeed, as "pass" is added for these when no statements are otherwise present. Courtesy Ben Trofatter [ticket:146]
-
- Mar 30, 2012
-
-
Mike Bayer authored
-
Mike Bayer authored
- fix up links, formatting in docs - remove some repetition in the _compile logic
-
- Mar 24, 2012
-
-
Mike Bayer authored
"pass_context"; when True, the keyword argument 'context' will be passed to get_or_create() containing the Mako Context object. [ticket:185]
-
Mike Bayer authored
- changelog
-
Mike Bayer authored
-
Mike Bayer authored
-
- Mar 12, 2012
-
-
Mike Bayer authored
apply Pygments highlighting to the source code displayed in the traceback, if Pygments if available. Courtesy Ben Trofatter [ticket:95]
-
Mike Bayer authored
i.e. "% with x as e:/ % endwith" support. Courtesy Ben Trofatter [ticket:147]
-
- Mar 09, 2012
-
-
Mike Bayer authored
nesting multiple def-calls with content. Thanks to Jeff Dairiki. [ticket:186]
-
- Feb 21, 2012
-
-
Mike Bayer authored
to filehandles being implicitly closed. [ticket:182]
-
- Feb 02, 2012
-
-
Mike Bayer authored
-
- Jan 28, 2012
-
-
Mike Bayer authored
Cache() constructor, which was preventing file version checks and not allowing Mako 0.6 to recompile the module files.
-
- Jan 21, 2012
-
-
Mike Bayer authored
(even though several of those old template libs aren't available on Py3K, so YMMV) [ticket:175]
-
Mike Bayer authored
in templates. Usage of regions should be considered as superseding the very obsolete idea of passing in backend options, timeouts, etc. within templates. - rewrite the cache docs again which had a lot of misleading/inaccurate info.
-
- Jan 19, 2012
-
-
Mike Bayer authored
-
- Jan 16, 2012
-
-
Mike Bayer authored
TemplateLookup, allows a callable to be passed which takes over the writing of the template's module source file, so that special environment-specific steps can be taken. [ticket:181]
-
Mike Bayer authored
for code blocks so that indentation is preserved [ticket:173]
-
Mike Bayer authored
is now escaped with the HTML filter. [ticket:142]
-
Mike Bayer authored
within extra arguments to <%block>, <%def>, i.e. <%block name="foo" cache_key="${somekey}">. Filters can also be used in this way, i.e. <%def name="foo()" filter="myfilter"> then template.render(myfilter=some_callable) [ticket:180]
-
- Dec 28, 2011
-
-
Mike Bayer authored
script, allows passing of kw to the template from the command line. [ticket:178]
-
- Oct 01, 2011
-
-
Mike Bayer authored
system, whereby the usage of Beaker is just the default plugin. Template and TemplateLookup now accept a string "cache_impl" parameter which refers to the name of a cache plugin, defaulting to the name 'beaker'. New plugins can be registered as pkg_resources entrypoints under the group "mako.cache", or registered directly using mako.cache.register_plugin(). The core plugin is the mako.cache.CacheImpl class. - The <%def>, <%block> and <%page> tags now accept any argument named "cache_*", and the key minus the "cache_" prefix will be passed as keyword arguments to the CacheImpl methods. - Template and TemplateLookup now accept an argument cache_args, which refers to a dictionary containing cache parameters. The cache_dir, cache_url, cache_type, cache_timeout arguments are deprecated (will probably never be removed, however) and can be passed now as cache_args={'url':<some url>, 'type':'memcached', 'timeout':50, 'dir':'/path/to/some/directory'}
-
- Sep 28, 2011
-
-
Mike Bayer authored
from having a url that normalizes to relative outside of the root. That is, if the Lookup is based at /home/mytemplates, an include that would place the ultimate template at /home/mytemplates/../some_other_directory, i.e. outside of /home/mytemplates, is disallowed. This usage was never intended despite the lack of an explicit check. The main issue this causes is that module files can be written outside of the module root (or raise an error, if file perms aren't set up), and can also lead to the same template being cached in the lookup under multiple, relative roots. TemplateLookup instead has always supported multiple file roots for this purpose. [ticket:174]
-
- Aug 05, 2011
-
-
Mike Bayer authored
whereby the identity of the "caller" callable inside the <%def> would be corrupted by the presence of another <%call> in the same block. [ticket:170]
-
- 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]
-