summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* rel_0_6 branchrel_0_6Mike Bayer2012-03-290-0/+0
|
* - [feature] Added class-level flag to CacheImplMike Bayer2012-03-244-11/+43
| | | | | | | "pass_context"; when True, the keyword argument 'context' will be passed to get_or_create() containing the Mako Context object. [ticket:185]
* oh we have his nameMike Bayer2012-03-241-1/+1
|
* changelogMike Bayer2012-03-241-0/+3
|
* Merged in fero14041/mako-benchmark-add_jinja (pull request #1)Mike Bayer2012-03-246-13/+102
|\
| * Use same constants across templates rendering functions:Vincent Férotin2012-02-211-12/+14
| | | | | | | | ``TITLE``, ``USER`` and ``(U_)ITEMS``.
| * Add Jinja2 example to benchmark:Vincent Férotin2012-02-216-1/+88
| | | | | | | | | | | | * add two new templates directory: ``examples/bench/jinja2`` and ``examples/bench/jinja2_inheritance``; * add two set of Jinja2 templates, matching those related to Mako; * add new ``jinja2`` function in ``examples/bench/basic.py`` module to load these new templates.
| * Remove an alone space on empty line.Vincent Férotin2012-02-211-1/+1
| |
* | - [feature] The html_error_template() will nowMike Bayer2012-03-124-24/+131
| | | | | | | | | | | | | | apply Pygments highlighting to the source code displayed in the traceback, if Pygments if available. Courtesy Ben Trofatter [ticket:95]
* | - [feature] Added support for context managers,Mike Bayer2012-03-125-2/+24
| | | | | | | | | | i.e. "% with x as e:/ % endwith" support. Courtesy Ben Trofatter [ticket:147]
* | - [bug] Fixed endless recursion bug whenMike Bayer2012-03-084-5/+24
|/ | | | | nesting multiple def-calls with content. Thanks to Jeff Dairiki. [ticket:186]
* - [bug] Fixed some Py3K resource warnings dueMike Bayer2012-02-216-12/+49
| | | | | to filehandles being implicitly closed. [ticket:182]
* forgot to tag 0.6.1Mike Bayer2012-02-021-0/+1
|
* Added tag rel_0_6_2 for changeset 70dec0aee9b25e1c9ad75dae71509edd5d1de87dMike Bayer2012-02-021-0/+1
|
* py3k fixesrel_0_6_2Mike Bayer2012-02-022-6/+20
|
* Fix for [ticket:20] and [ticket:86] much thanks to EeveeMike Bayer2012-02-024-21/+45
|
* 0.6.1rel_0_6_1Mike Bayer2012-01-281-1/+1
|
* recommit tagMike Bayer2012-01-281-0/+1
|\
| * Added tag rel_0_6_0 for changeset af13670b6433c6f53d321cf044aa59370fed380fMike Bayer2012-01-211-0/+1
| |
* | - [bug] Added special compatibility for the 0.5.0Mike Bayer2012-01-282-1/+11
|/ | | | | | Cache() constructor, which was preventing file version checks and not allowing Mako 0.6 to recompile the module files.
* - [bug] The "benchmark" example is now Python 3 compatiblerel_0_6_0Mike Bayer2012-01-212-22/+42
| | | | | (even though several of those old template libs aren't available on Py3K, so YMMV) [ticket:175]
* wrong version hereMike Bayer2012-01-211-1/+1
|
* - [feature] Added support for Beaker cache regionsMike Bayer2012-01-215-99/+250
| | | | | | | | in templates. Usage of regions should be considered as superseding the very obsolete idea of passing in backend options, timeouts, etc. within templates. - rewrite the cache docs again which had a lot of misleading/inaccurate info.
* rename 'put' to 'set'Mike Bayer2012-01-192-3/+13
|
* get_and_replace is wrong, for now changed to get_or_create like dogpile.cacheMike Bayer2012-01-184-8/+8
|
* move _load_impl down in __init__ so impls can get at thingsMike Bayer2012-01-181-1/+1
|
* cleanup, remove "site" builder, fix the titlebarMike Bayer2012-01-179-87/+41
|
* toot our hornMike Bayer2012-01-161-1/+2
|
* - ok init.js was from the sqlalchemy versionMike Bayer2012-01-162-2/+1
| | | | - same root url fix
* build in new readthedocs + mako site layout buildMike Bayer2012-01-1613-47/+391
|
* - [feature] Added module_writer argument to Template,Mike Bayer2012-01-164-12/+81
| | | | | | | 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]
* - [bug] Added "white-space:pre" style to html_error_template()Mike Bayer2012-01-162-0/+6
| | | | | for code blocks so that indentation is preserved [ticket:173]
* - [bug] The exception message in the html_error_templateMike Bayer2012-01-164-20/+40
| | | | is now escaped with the HTML filter. [ticket:142]
* 2012Mike Bayer2012-01-1621-21/+21
|
* - [feature/bug] Can now refer to context variablesMike Bayer2012-01-166-10/+92
| | | | | | | | | 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]
* propagate cache_impl from lookup to template , #179Mike Bayer2012-01-112-1/+13
|
* fix genindex bugMike Bayer2012-01-051-5/+5
|
* update sphinx rendering to use built in jinja rendering for .js/.css filesMike Bayer2011-12-301-16/+11
|
* - Added "--var name=value" option to the mako-renderMike Bayer2011-12-282-3/+15
| | | | | script, allows passing of kw to the template from the command line. [ticket:178]
* upgrade docs to newer format from SQLAMike Bayer2011-12-214-230/+426
|
* modernize the READMEMike Bayer2011-12-144-92/+55
|
* make it more clear about what "context" is called in a templateMike Bayer2011-12-052-5/+12
|
* add classifiersMike Bayer2011-12-031-0/+2
|
* undo all that pkg_resources crap and just cache what we get from ↵Mike Bayer2011-10-022-76/+34
| | | | | | iter_entry_points. pkg_resources API feels very fragile
* install extreme hoops for pkg_resources and I'm starting to wonder ifMike Bayer2011-10-012-9/+25
| | | | I really want to do it like this
* pkg_resources hoopsMike Bayer2011-10-012-5/+39
|
* need this tooMike Bayer2011-10-011-0/+57
|
* branch merge, hoorayMike Bayer2011-10-0110-198/+578
|\
| * - Template caching has been converted into a pluginMike Bayer2011-10-0110-198/+578
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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'}
* | Added tag rel_0_5_0 for changeset 5cd508ffe0d7eaadd6516fc35137c93d1d6577a9Mike Bayer2011-09-271-0/+1
|/