- Jul 08, 2012
-
-
Mike Bayer authored
same time args passed to def() are used by other elements of the <%def> tag. [ticket:191]
-
- 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]
-
- Jan 21, 2012
-
-
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 18, 2012
-
-
Mike Bayer authored
-
- Jan 16, 2012
-
-
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]
-
- Jan 12, 2012
-
-
Mike Bayer authored
-
- 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'}
-
- Jan 19, 2011
-
-
Mike Bayer authored
-
- Mar 02, 2010
-
-
Mike Bayer authored
HTML file writing, consistently cleanup the modules/cache directories, use nose skiptests for unsupported features.
-
- Feb 05, 2010
-
-
Mike Bayer authored
-
- Oct 25, 2008
-
-
Mike Bayer authored
- added "cache_enabled=True" flag to Template, TemplateLookup. Setting this to False causes cache operations to "pass through" and execute every time; this flag should be integrated in Pylons with its own cache_enabled configuration setting.
-
- Oct 17, 2008
-
-
Mike Bayer authored
cache sends in a "defname" parameter so that the cache can map settings to that name, instead of the key. eliminates the need to store all Value objects which will use up RAM in a dynamic-key scenario.
-
- Sep 27, 2008
-
-
Mike Bayer authored
e.g. ${local.cache.get('somekey')} or template.cache.invalidate_body() - the Cache object now supports invalidate_def(name), invalidate_body(), invalidate_closure(name), invalidate(key), which will remove the given key from the cache, if it exists. The cache arguments (i.e. storage type) are derived from whatever has been already persisted for that template. [ticket:92]
-
- Jun 23, 2008
-
-
Mike Bayer authored
an expired section, instead of the original context passed in [ticket:87]
-
Mike Bayer authored
a cached block would raise an error when called within a cache-refresh operation that was initiated after the initiating template had completed rendering.
-
- May 03, 2008
-
-
Philip Jenvey authored
-
- Mar 01, 2008
-
-
Mike Bayer authored
directly to the %page or %def, i.e. <%def name="foo(x)" cached="True" cache_key="${x}"/> [ticket:78]
-
- Jan 19, 2008
-
-
Mike Bayer authored
caching, combined with an expression-based cache_key, combined with the usage of <%namespace import="*"/>
-
- Mar 27, 2007
-
-
Mike Bayer authored
-
- Mar 10, 2007
-
-
Mike Bayer authored
-
- Mar 01, 2007
-
-
Mike Bayer authored
-
- Jan 02, 2007
-
-
Mike Bayer authored
-
Mike Bayer authored
-
- Dec 13, 2006
-
-
Mike Bayer authored
-
- Dec 12, 2006
-
-
Mike Bayer authored
-
- Dec 09, 2006
-
-
Mike Bayer authored
-
- Dec 05, 2006
-
-
Mike Bayer authored
cache function optional
-
- Dec 04, 2006
-
-
Mike Bayer authored
-