- Jul 08, 2012
-
-
Mike Bayer authored
same time args passed to def() are used by other elements of the <%def> tag. [ticket:191]
-
Mike Bayer authored
-
- Mar 30, 2012
-
-
Mike Bayer authored
- fix up links, formatting in docs - remove some repetition in the _compile logic
-
- Mar 24, 2012
-
-
Benjamin Trofatter authored
-
Mike Bayer authored
- changelog
-
- Mar 12, 2012
-
-
Mike Bayer authored
i.e. "% with x as e:/ % endwith" support. Courtesy Ben Trofatter [ticket:147]
-
- Jan 16, 2012
-
-
Mike Bayer authored
-
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]
-
- 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'}
-
- 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]
-
- Feb 20, 2011
-
-
Mike Bayer authored
-
- Feb 19, 2011
-
-
Mike Bayer authored
- convert heading copyrights to 2006-2011, reference AUTHORS file
-
- Jan 19, 2011
-
-
Mike Bayer authored
-
- Nov 13, 2010
-
-
Mike Bayer authored
- move Namespace docs inline to attributes on Namespace - document Cache methods, add to caching.rst - use functools.partial for partials, part of [ticket:156]
-
- 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.
-
- Sep 02, 2010
-
-
Mike Bayer authored
doesn't occur on Python 2.7
-
- 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.
-
- 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
-
- Feb 05, 2010
-
-
Mike Bayer authored
-
Mike Bayer authored
- start work on #98
-
- Sep 07, 2009
-
-
Mike Bayer authored
-
- Mar 19, 2009
-
-
Mike Bayer authored
allows custom decoration functions to wrap rendering callables. Mainly intended for custom caching algorithms, not sure what other uses there may be (but there may be). Examples are in the "filtering" docs.
-
- Nov 16, 2008
-
-
Mike Bayer authored
better support grouping
-
Mike Bayer authored
-
Mike Bayer authored
to be used in place of sys.exc_info()[2]. html_error_template() and text_error_template() accept an optional render()-time argument "traceback" which is passed to the RichTraceback object. - lexer tests now rely upon an always-sorted dict repr()
-
- Nov 15, 2008
-
-
Mike Bayer authored
http://techspot.zzzeek.org/?p=28 has now been added as a built in syntax, and is recommended as a more modern syntax versus <%call expr="expression">. The %call tag itself will always remain, with <%namespacename:defname> presenting a more HTML-like alternative to calling defs, both plain and nested. Many examples of the new syntax are in the "Calling a def with embedded content" section of the docs.
-
- Jan 19, 2008
-
-
Mike Bayer authored
-
- Apr 21, 2007
-
-
Mike Bayer authored
using a more portable **exception_kwargs collection - added "source" member to the dict propigated to Lexer/Compile exceptions - RichTraceback can access original template source as a unicode object using either 'source' memebr on Lexer/Compile exception, or 'source' property on ModuleInfo, fixes #37 - unit tests for #37
-
- Mar 26, 2007
-
-
Mike Bayer authored
-
Mike Bayer authored
during 0.1.4 [ticket:29]
-
- Mar 19, 2007
-
-
Mike Bayer authored
-
- Mar 16, 2007
-
-
Mike Bayer authored
-
- Mar 08, 2007
-
-
Mike Bayer authored
template (keyword arguments only, must be declared in that page's <%page> tag.)
-
- Jan 05, 2007
-
-
Mike Bayer authored
-
- Jan 04, 2007
-
-
Mike Bayer authored
-
- Dec 17, 2006
-
-
Mike Bayer authored
-
- Dec 16, 2006
-
-
Mike Bayer authored
-
Mike Bayer authored
implemented "args" for <%page> tag. still has a default "**_extra_pageargs" catchall for now...
-