Skip to content
Snippets Groups Projects
  1. Jan 18, 2012
  2. Jan 16, 2012
    • Mike Bayer's avatar
      - [feature/bug] Can now refer to context variables · 2879f8bc
      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]
      2879f8bc
  3. Jan 12, 2012
  4. Oct 01, 2011
    • Mike Bayer's avatar
      - Template caching has been converted into a plugin · 643701f1
      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'}
      643701f1
  5. Jan 19, 2011
  6. Mar 02, 2010
  7. Feb 05, 2010
  8. Oct 25, 2008
    • Mike Bayer's avatar
      - beaker bump · a6793784
      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.
      a6793784
  9. Oct 17, 2008
  10. Sep 27, 2008
    • Mike Bayer's avatar
      - added "cache" accessor to Template, Namespace. · 041b60f5
      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]
      041b60f5
  11. Jun 23, 2008
  12. May 03, 2008
  13. Mar 01, 2008
  14. Jan 19, 2008
  15. Mar 27, 2007
  16. Mar 10, 2007
  17. Mar 01, 2007
  18. Jan 02, 2007
  19. Dec 13, 2006
  20. Dec 12, 2006
  21. Dec 09, 2006
  22. Dec 05, 2006
  23. Dec 04, 2006
Loading