- May 14, 2012
-
-
Vincent Férotin authored
fix misspelled words, remove line ending spaces, change ``-`` to ``--``, add some ``'`` between subject and 'to be' verb (e.g. "it's", "i'm"), add some ending dots to sentences, change some letters "capitalness", etc.
-
- Mar 30, 2012
-
-
Mike Bayer authored
- fix up links, formatting in docs - remove some repetition in the _compile logic
-
- Mar 24, 2012
-
-
Mike Bayer authored
- changelog
-
- Feb 21, 2012
-
-
Mike Bayer authored
to filehandles being implicitly closed. [ticket:182]
-
- 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
-
- 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]
-
- 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
- misc cleanup
-
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.
-
- 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 12, 2010
-
-
Mike Bayer authored
-
Mike Bayer authored
-
Mike Bayer authored
-
Mike Bayer authored
-
- Nov 10, 2010
-
-
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.
-
- 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.
-
- 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 13, 2010
-
-
Mike Bayer authored
template.last_modified
-
- Mar 05, 2010
-
-
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]
-
- 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
-
- Sep 07, 2009
-
-
Mike Bayer authored
-
- May 19, 2009
-
-
Mike Bayer authored
-
- Jan 13, 2009
-
-
Mike Bayer authored
returns the time.time() when the module was created. [ticket:97]
-
- 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.
-
- 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]
-
- Sep 07, 2008
-
-
Mike Bayer authored
-
Mike Bayer authored
- removed unnecessary attributes from DefTemplate. - added ModuleTemplate class, which allows the construction of a Template given a Python module generated by a previous Template. This allows Python modules alone to be used as templates with no compilation step. Source code and template source are optional but allow error reporting to work correctly.
-
- Jun 09, 2008
-
-
Mike Bayer authored
render_unicode() from returning a unicode object
-
- Apr 12, 2008
-
-
Philip Jenvey authored
-
- Apr 11, 2008
-
-
Philip Jenvey authored
python via _ast and google app engine
-
- Mar 22, 2008
-
-
Mike Bayer authored
argument passed to Template or TemplateLookup. All unicode-awareness and filtering is turned off, and template modules are generated with the appropriate magic encoding comment. In this mode, template expressions can only receive raw bytestrings or Unicode objects which represent straight ASCII, and render_unicode() may not be used. [ticket:77] (courtesy anonymous guest)
-
- Feb 15, 2008
-
-
Mike Bayer authored
configured as module level attributes, i.e. within <%! %> sections [ticket:62] - removed reliance upon KeyError/AttributeError in namespace.__getattr__
-
- Jan 19, 2008
-
-
Mike Bayer authored
-