summaryrefslogtreecommitdiff
path: root/jinja2/environment.py
Commit message (Collapse)AuthorAgeFilesLines
...
* Make the runtime leak less of the version hacksArmin Ronacher2013-05-201-6/+9
|
* Added unicode mixin for unified string logicArmin Ronacher2013-05-191-9/+2
|
* PY3 -> PY2 macroArmin Ronacher2013-05-191-5/+8
|
* Moved all six usages (ignoring testsuite) into jinja2._compatArmin Ronacher2013-05-191-19/+19
|
* Added support for map, select, reject, selectattr and rejectattrArmin Ronacher2013-05-191-1/+38
| | | | | | filters. This supercedes #66
* Merge pull request #114 from cocoatomo/patch-1Armin Ronacher2013-05-191-1/+0
|\ | | | | There is no need to initialize Environment#bytecode_cache twice
| * There is no need to initialize Environment#bytecode_cache.cocoatomo2012-04-061-1/+0
| |
* | Merge remote-tracking branch 'kristi/master'Armin Ronacher2013-05-191-4/+13
|\ \
| * | clarify lstrip_blocks optionKristi Tsukida2012-07-101-1/+1
| | |
| * | add lstrip_blocks environment setting, fix lexerKristi Tsukida2012-07-101-1/+10
| |/
* | Merge remote-tracking branch 'wking/keep-trailing-newline'Armin Ronacher2013-05-191-3/+14
|\ \
| * | Add `keep_trailing_newline` to configure final endline strippingW. Trevor King2013-01-111-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This option defaults to False for compatibility with the existing behaviour. I've added the option because I expect I won't remember to keep an extra trailing newline in my templates, and some non-HTML templates *need* that last newline. See also: https://groups.google.com/d/msg/pocoo-libs/6DylMqq1voI/GXTbZJ1Tr-sJ
* | | Make dump() work Python 3.3Armin Ronacher2013-05-181-1/+1
| | |
* | | file -> open for 3.x support. This fixes #152Armin Ronacher2013-05-181-1/+1
| | |
* | | A bit of cleanup in the environmentArmin Ronacher2013-05-181-2/+6
| | |
* | | python 3 port: manual fixes, remove 2to3 from setup.py, remove fixersThomas Waldmann2013-05-181-18/+13
| | |
* | | python 3 port: automated changes by a slightly modified python-modernizeThomas Waldmann2013-05-171-9/+14
|/ / | | | | | | (replacing unicode with six.text_type, but not replacing u"" by six.u(""))
* | Fixed an unicode error after 2to3Armin Ronacher2012-09-161-1/+1
| |
* | Added filesize part to the module compiler. This fixes #131 for 3.3 and laterArmin Ronacher2012-09-161-0/+4
|/
* couple of typos in commentsDmitry Jemerov2011-09-261-5/+5
|
* Another referenceArmin Ronacher2011-01-291-0/+2
|
* Updated documentation for operator interceptingArmin Ronacher2010-11-291-1/+2
|
* Fixed a typo and removed a useless backslashArmin Ronacher2010-11-291-1/+1
|
* Removed unused importArmin Ronacher2010-11-291-1/+1
|
* 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