aboutsummaryrefslogtreecommitdiffstats
path: root/lib/mako
Commit message (Collapse)AuthorAgeFilesLines
* move lib/mako to makoMike Bayer2010-02-0521-5267/+0
|
* - update copyright for 2010Mike Bayer2010-02-0512-129/+346
| | | | - start work on #98
* Further fixes to unicode handling of .py files with thePhilip Jenvey2010-01-221-2/+30
| | | | html_error_template. fixes #88
* fix mako function decorators to preserve the original function's name in allPhilip Jenvey2009-11-011-0/+5
| | | | cases
* support the <%namespacename:defname> syntax in the babel extractorPhilip Jenvey2009-09-221-0/+5
| | | | fixes #118
* happy new yearrel_0_2_5Mike Bayer2009-09-0712-12/+12
|
* - added "mako.__version__" attribute toMike Bayer2009-06-281-0/+3
| | | | the base module. [ticket:110]
* dont create DefTemplate object just for namespace callsMike Bayer2009-05-192-2/+5
|
* - Removed errant "lower()" in the lexer whichMike Bayer2009-04-191-1/+1
| | | | | | was causing tags to compile with case-insensitive names, thus messing up custom <%call> names. [ticket:108]
* - When Mako creates subdirectories in whichMike Bayer2009-03-201-1/+1
| | | | | | | | | to store templates, it uses the more permissive mode of 0775 instead of 0750, helping out with certain multi-process scenarios. Note that the mode is always subject to the restrictions of the existing umask. [ticket:101]
* - Fixed namespace.__getattr__() to raiseMike Bayer2009-03-191-1/+1
| | | | | AttributeError on attribute not found instead of RuntimeError. [ticket:104]
* - Added a "decorator" kw argument to <%def>,Mike Bayer2009-03-193-2/+30
| | | | | | | | allows custom decoration functions to wrap rendering callables. Mainly intended for custom caching algorithms, not sure what other uses there may be (but there may be). Examples are in the "filtering" docs.
* - Fixed lexing support for whitespaceMike Bayer2009-02-261-1/+1
| | | | around '=' sign in defs. [ticket:102]
* - Added last_modified accessor to Template,Mike Bayer2009-01-131-1/+5
| | | | | returns the time.time() when the module was created. [ticket:97]
* whitespacePhilip Jenvey2008-12-231-1/+1
|
* reapply the _fields check, it's needed for CPython 2.5rel_0_2_4Philip Jenvey2008-12-061-0/+3
|
* fixed compat. with the upcoming Jython 2.5b1 by removing all the JythonPhilip Jenvey2008-12-062-47/+11
| | | | workarounds; its AST matches CPython's pretty closely
* use __builtin__, __builtins__ is an implementation detailPhilip Jenvey2008-11-191-2/+2
|
* - fixed bug whereby an <%included> template withMike Bayer2008-11-181-3/+4
| | | | | <%page> args named the same as a __builtin__ would not honor the default value specified in <%page> [ticket:93]
* put parenthesis around expressions from ${} blocks inside of attributes toMike Bayer2008-11-161-1/+1
| | | | better support grouping
* support blank tag attributesMike Bayer2008-11-161-1/+1
|
* - RichTraceback() now accepts an optional traceback objectMike Bayer2008-11-163-10/+23
| | | | | | | | to be used in place of sys.exc_info()[2]. html_error_template() and text_error_template() accept an optional render()-time argument "traceback" which is passed to the RichTraceback object. - lexer tests now rely upon an always-sorted dict repr()
* - the <%namespacename:defname> syntax described atMike Bayer2008-11-154-35/+172
| | | | | | | | | | | | http://techspot.zzzeek.org/?p=28 has now been added as a built in syntax, and is recommended as a more modern syntax versus <%call expr="expression">. The %call tag itself will always remain, with <%namespacename:defname> presenting a more HTML-like alternative to calling defs, both plain and nested. Many examples of the new syntax are in the "Calling a def with embedded content" section of the docs.
* whitespacePhilip Jenvey2008-10-261-1/+1
|
* we don't have to split('.') either on Jython nowPhilip Jenvey2008-10-261-3/+1
|
* - beaker bumpMike Bayer2008-10-253-5/+29
| | | | | | | | - 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.
* - caching now uses beaker.cache_manager directly. For best resultsMike Bayer2008-10-171-36/+31
| | | | | | use Beaker 1.0.4, just checked in. This version of Beaker stores no persistent state in memory for each key, allowing dynamically generated keys to work without using up available memory.
* cache sends in a "defname" parameter so that the cache can map settings to ↵Mike Bayer2008-10-172-15/+16
| | | | | | that name, instead of the key. eliminates the need to store all Value objects which will use up RAM in a dynamic-key scenario.
* update to latest Jython AST class name mappingsPhilip Jenvey2008-10-021-5/+9
|
* - added "cache" accessor to Template, Namespace.Mike Bayer2008-09-273-14/+49
| | | | | | | | | | | | | 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]
* o fix compatibility with babel 0.9.3: stripping comment tags is now optionalPhilip Jenvey2008-09-182-5/+1
| | | | | and babel is responisble for stripping them when necessary o remove the no longer needed Unicode/Str ast hack for Jython
* merge trunk@400:branches/jython@400 to trunkPhilip Jenvey2008-09-182-16/+49
| | | | adds support for Jython 2.5
* fix Python 2.3 compatPhilip Jenvey2008-09-111-1/+1
| | | | fixes #90
* correctionMike Bayer2008-09-071-1/+1
|
* - fixed cache code to work with Beaker 1.0.1, which is now the required ↵Mike Bayer2008-09-072-14/+55
| | | | | | | | | | | | version of Beaker. - 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.
* - cache module now uses Beaker's clsmap to get atMike Bayer2008-07-101-16/+5
| | | | | | | container classes, so cache types such as "ext:google", "ext:sqla", etc. are available. memcached is available as both "ext:memcached" and "memcached", the latter for backwards compatibility.
* fix the html_error_template not handling tracebacks from normal .py files withPhilip Jenvey2008-07-082-2/+60
| | | | a magic encoding comment
* - cached blocks now use the current context when renderingrel_0_2_2Mike Bayer2008-06-232-11/+8
| | | | | an expired section, instead of the original context passed in [ticket:87]
* - fixed a critical issue regarding caching, wherebyMike Bayer2008-06-231-5/+18
| | | | | | a cached block would raise an error when called within a cache-refresh operation that was initiated after the initiating template had completed rendering.
* - bumped magic number, which forces template recompile forrel_0_2_1Mike Bayer2008-06-161-1/+1
| | | | | | | this version (fixes incompatible compile symbols from 0.1 series). - added a few docs for cache options, specifically those that help with memcached.
* - fixed bug where 'output_encoding' parameter would preventMike Bayer2008-06-092-1/+4
| | | | render_unicode() from returning a unicode object
* - dict/locals placed in mako-private namespace, [ticket:84]Mike Bayer2008-06-021-2/+4
|
* - can now use most names from __builtins__ as variableMike Bayer2008-05-242-6/+11
| | | | | names without explicit declaration (i.e. 'id', 'exception', 'range', etc.) [ticket:83]
* - some refinements to FastEncodingBuffer re: unicodeMike Bayer2008-05-033-12/+13
| | | | - fixed buffering when disable_unicode is used
* footnote to [ticket:76] - inlined FastEncodingBuffer's write() methodMike Bayer2008-05-031-4/+2
|
* - CHANGES cleanupMike Bayer2008-05-032-27/+63
| | | | | | | - some functions on Context are now private: _push_buffer(), _pop_buffer(), caller_stack._push_frame(), caller_stack._pop_frame(). - implemented [ticket:76] inlining of context.write()
* remove erroneous extra line of declaresMike Bayer2008-05-031-2/+0
|
* small cleanupPhilip Jenvey2008-04-131-2/+2
|
* use os.path.exists instead of os.access F_OK, which is currently broken on ↵Philip Jenvey2008-04-124-6/+6
| | | | google app engine
* merged r351 from branches/jythonPhilip Jenvey2008-04-121-2/+8
|