summaryrefslogtreecommitdiff
path: root/jinja2/environment.py
Commit message (Collapse)AuthorAgeFilesLines
* Changed naked except statements to catch only subclasses of Exception.Ian Lewis2010-11-071-3/+3
| | | | | | | | | | | | | | Naked except statements catch subclasses of BaseException which can occur anywhere (i.e. KeyboardInterrupt). Unexpected issues can occur when the exception happens during the loading of a module. The python interpreter doesn't know about a module's failed load and does not remove it from sys.modules. This is particularly a problem on AppEngine where python will think the module is loaded but in fact the module load has failed. See: http://code.google.com/p/googleappengine/issues/detail?id=1409 Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
* Fixed extensions not loading properly with overlaysArmin Ronacher2010-10-171-1/+1
|
* Fixed a bug in add_extensionArmin Ronacher2010-05-291-1/+1
| | | | | --HG-- branch : trunk
* Added hooks for compilation and generation. This fixes #384Armin Ronacher2010-05-291-4/+20
| | | | | --HG-- branch : trunk
* Finished support for newstyle gettext translationsArmin Ronacher2010-05-291-0/+7
| | | | | --HG-- branch : trunk
* Added extension ordering, this fixes #376.Armin Ronacher2010-04-121-2/+7
| | | | | --HG-- branch : trunk
* autoescape no longer is a plain boolean value but can also be a functionArmin Ronacher2010-04-051-1/+7
| | | | | | | | to enable or disable autoescaping for certain filenames (or file extensions for that matter) --HG-- branch : trunk
* Template to module compilation should work on 3.x now.Armin Ronacher2010-03-151-5/+7
| | | | | --HG-- branch : trunk
* Biggest change to Jinja since the 1.x migration: added evaluation contextsArmin Ronacher2010-03-141-2/+3
| | | | | | | | | which make it possible to keep the ahead of time optimizations and provide dynamic activation and deactivation of autoescaping and other context specific features. --HG-- branch : trunk
* Improved tests and template compilation.Armin Ronacher2010-03-121-18/+49
| | | | | --HG-- branch : trunk
* added a :class:`ModuleLoader` that can load templates fromArmin Ronacher2010-03-121-7/+111
| | | | | | | | | | precompiled sources. The environment now features a method to compile the templates from a configured loader into a zip file or folder. --HG-- branch : trunk extra : rebase_source : 4824f663e4ff58ca3d2176c65fc1b7494e1f0c43
* Reindented a docstring.Armin Ronacher2010-02-171-3/+3
| | | | | --HG-- branch : trunk
* Documented the API changes in get_template and select_template.Armin Ronacher2010-02-161-0/+8
| | | | | --HG-- branch : trunk
* the environment template loading functions now transparentlyArmin Ronacher2010-02-161-0/+6
| | | | | | | | | pass through a template object if it was passed to it. This makes it possible to import or extend from a template object that was passed to the template. --HG-- branch : trunk
* Down to 7 failures for Python 3. We're onto something.Armin Ronacher2010-02-101-6/+4
| | | | | --HG-- branch : trunk
* Added comment to why __unicode__ goes after __str__.Armin Ronacher2010-02-101-0/+4
| | | | | --HG-- branch : trunk
* Approaching python3 compatibilityArmin Ronacher2010-02-101-3/+3
| | | | | --HG-- branch : trunk
* Propably delaying release for better python 3 support. Started working onArmin Ronacher2010-02-091-2/+5
| | | | | | | that. --HG-- branch : trunk
* experimental Python 3 support.Armin Ronacher2010-02-091-3/+3
| | | | | --HG-- branch : trunk
* Improved finalize documentation.Armin Ronacher2010-01-241-2/+3
| | | | | --HG-- branch : trunk
* It's a new yearArmin Ronacher2010-01-221-1/+1
| | | | | --HG-- branch : trunk
* include tags are now able to select between multiple templatesArmin Ronacher2010-01-141-12/+49
| | | | | | | | and take the first that exists, if a list of templates is given. --HG-- branch : trunk
* Fix typos and one extra import.Georg Brandl2009-11-221-2/+2
| | | | | --HG-- branch : trunk
* Refactoring in the way the parse function is invoked.Armin Ronacher2009-09-131-15/+25
| | | | | --HG-- branch : trunk
* More Python 3 support.Armin Ronacher2009-08-051-5/+14
| | | | | --HG-- branch : trunk
* Renamed (undocumented) attribute overlay to overlayed on the environmentArmin Ronacher2009-07-091-2/+2
| | | | | | | | because it was clashing with a method of the same name. The new attribute is called "overlayed". --HG-- branch : trunk
* Resolved conflictArmin Ronacher2009-04-161-0/+6
|\ | | | | | | | | --HG-- branch : trunk
| * Documented more changesArmin Ronacher2009-04-021-0/+9
| | | | | | | | | | --HG-- branch : trunk
| * Started refactoring of debugging system for better AppEngine/Pylons support.Armin Ronacher2009-03-051-12/+28
| | | | | | | | | | --HG-- branch : trunk
* | Fixed a bug with template syntax errors not handled properly.Armin Ronacher2009-04-161-5/+4
| | | | | | | | | | --HG-- branch : trunk
* | Started refactoring of debugging system for better AppEngine/Pylons support.Armin Ronacher2009-03-051-12/+28
| | | | | | | | | | | | --HG-- branch : trunk extra : rebase_source : 30b87a402e0847f95eaf277d0fc50e1a63177d5b
* | Added support for line-based comments.Armin Ronacher2009-03-301-7/+16
| | | | | | | | | | --HG-- branch : trunk
* | Applied documentation patches by Clemens Hermann.Armin Ronacher2009-03-181-2/+2
|/ | | | | --HG-- branch : trunk
* Improved Jinja's debugging support by introducing "@internalcode" which ↵Armin Ronacher2009-02-241-5/+10
| | | | | | | marks code objects that are skipped on tracebacks. Also template errors are now translated as well to help the pylons debugger. --HG-- branch : trunk
* Added support for optional `scoped` modifier to blocks.Armin Ronacher2009-02-191-16/+3
| | | | | --HG-- branch : trunk
* Copyright switch to "The Jinja Team".Armin Ronacher2009-01-041-1/+1
| | | | | --HG-- branch : trunk
* Fixed a typoArmin Ronacher2008-12-081-1/+1
| | | | | --HG-- branch : trunk
* Added support for `Environment.compile_expression`.Armin Ronacher2008-11-021-5/+68
| | | | | --HG-- branch : trunk
* Various cleanups and added custom cycler.Armin Ronacher2008-10-051-4/+21
| | | | | --HG-- branch : trunk
* imports and includes "with context" are passed the full context now, not ↵Armin Ronacher2008-10-041-7/+13
| | | | | | | only the initial one. --HG-- branch : trunk
* Some typos.Georg Brandl2008-09-191-4/+4
| | | | | --HG-- branch : trunk
* Improved bbcache and documented it.Armin Ronacher2008-09-171-0/+2
| | | | | --HG-- branch : trunk
* Added experimental and undocumented bytecode cache supportArmin Ronacher2008-09-171-3/+12
| | | | | --HG-- branch : trunk
* Linked from autoescape to markupArmin Ronacher2008-09-081-0/+2
| | | | | --HG-- branch : trunk
* Fixed a typoArmin Ronacher2008-09-081-1/+1
| | | | | --HG-- branch : trunk
* Removed a few stdlib dependencies. This is the first step for IronPython ↵Armin Ronacher2008-08-131-5/+2
| | | | | | | support, the second one being a new lexer. --HG-- branch : trunk
* Automated merge with http://dev.pocoo.org/hg/jinja2-main/Christopher Grebs2008-07-101-1/+1
|\ | | | | | | | | --HG-- branch : trunk
| * fixed attribute lookup error with old style classesChristopher Grebs2008-07-101-1/+1
| | | | | | | | | | --HG-- branch : trunk
* | Fixed some minor glitches.Armin Ronacher2008-06-201-1/+1
| | | | | | | | | | --HG-- branch : trunk
* | Added `TemplateStream.dump`.Armin Ronacher2008-06-171-0/+27
| | | | | | | | | | --HG-- branch : trunk