- 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 09, 2011
-
-
Mike Bayer authored
-
- Aug 05, 2011
-
-
Mike Bayer authored
-
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
-
Mike Bayer authored
-
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]
-
- Mar 06, 2011
-
-
Mike Bayer authored
-
- Feb 21, 2011
-
-
Mike Bayer authored
-
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
there's a namespace or include
-
Mike Bayer authored
- don't call os.stat twice ! - tee hee !
-
Mike Bayer authored
it's internal _data dictionary, now include just what was specified to render() as well as Mako builtins 'caller', 'capture'. The contents of __builtin__ are no longer copied.
-
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 20, 2011
-
-
Mike Bayer authored
-
Mike Bayer authored
-
- Feb 19, 2011
-
-
Mike Bayer authored
-
Mike Bayer authored
-
Mike Bayer authored
- convert heading copyrights to 2006-2011, reference AUTHORS file
-
- Jan 19, 2011
-
-
Mike Bayer authored
-
- Jan 06, 2011
-
-
Mike Bayer authored
-
- Nov 16, 2010
-
-
Mike Bayer authored
-
Mike Bayer authored
least remove huge lines
-
- Nov 13, 2010
-
-
Mike Bayer authored
-
Mike Bayer authored
-
Mike Bayer authored
-
Mike Bayer authored
-
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]
-
Mike Bayer authored
-
Mike Bayer authored
-
Mike Bayer authored
'' write in the case of backslash-ended lines. [ticket:155]
-
Mike Bayer authored
is delayed until actually needed; this to remove the performance penalty from startup, particularly for "single execution" environments such as shell scripts. [ticket:153]
-
- Nov 12, 2010
-
-
Mike Bayer authored
setup.py instead of "install_requires". This to produce a lighter weight install for those who don't use the caching as well as to conform to Pyramid deployment practices. [ticket:154]
-
Mike Bayer authored
setup.py which prevented setup.py from running 2to3 on install. [ticket:148]
-
Mike Bayer authored
-
Mike Bayer authored
-
Mike Bayer authored
-