Commits

Show all
Author Commit Message Labels Comments Date
Mike Bayer
- A Template is explicitly disallowed 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 modul…
Tags
rel_0_5_0
Mike Bayer
css fix for some unwanted pygments thing
Mike Bayer
Added tag rel_0_4_2 for changeset 27ed71934c2e
Mike Bayer
- Fixed bug regarding <%call>/def calls w/ content 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]
Tags
rel_0_4_2
Mike Bayer
- Fixed the babel plugin to accommodate <%block> [ticket:169]
Mike Bayer
Added tag rel_0_4_1 for changeset 4f1f0d9e6d1d
Mike Bayer
- don't declare show_title() in the base
Tags
rel_0_4_1
Mike Bayer
- New tag: <%block>. A variant on <%def> that 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 u…
Mike Bayer
- a slight adjustment to the "highlight" logic for generating template bound stacktraces. Will stick to known template source lines without any extra guessing. [ticket:165]
Mike Bayer
Added tag rel_0_4_0 for changeset 44e46fe61e39
Mike Bayer
- py3k fixes
Tags
rel_0_4_0
Mike Bayer
- the "ascii encoding by default" approach doesn't work in Py3K, 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
- fix uncovered bug in FastEncodingBuffer - misc cleanup
Mike Bayer
- use the _uri_cache for adjust_uri(), as this is called each time there's a namespace or include
Mike Bayer
- use deque instead of list for FastEncodingBuffer - don't call os.stat twice ! - tee hee !
Mike Bayer
- the keys() in the Context, as well as 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
- use inlined getargspec - 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. Us…
Mike Bayer
add docs for new classes
Mike Bayer
got all tests to pass again
Mike Bayer
moving around getargs and such, have a recursion error in one test not figured out yet
Mike Bayer
step 1, three separate classes, new magic number
Mike Bayer
- add AUTHORS file - convert heading copyrights to 2006-2011, reference AUTHORS file
Mike Bayer
- now that trailing whitespace comes up in red, need to get rid of it
Mike Bayer
some manifest adjustments
Mike Bayer
merge tip
Mike Bayer
run the lexer test through combination pytidy/manual cleanup, to at least remove huge lines
Mike Bayer
Added tag rel_0_3_6 for changeset 26df51c4fc72
Mike Bayer
cleanup
Tags
rel_0_3_6
Mike Bayer
update
Mike Bayer
some ignores
  1. Prev
  2. Next