summaryrefslogtreecommitdiff
path: root/jinja2/defaults.py
Commit message (Collapse)AuthorAgeFilesLines
* Add support for `{% trans trimmed ... %}`Adrian Moennich2017-07-031-0/+1
| | | | | | | Same behavior as in Django: All linebreaks and the whitespace surrounding linebreaks are replaced with a single space. closes #504
* Add support for namespace attribute assignmentAdrian Moennich2017-06-241-2/+3
|
* Allow to reconfigure the default for truncate leewayArmin Ronacher2017-01-101-0/+1
| | | | Refs #610
* Bump up the copyright to 2017Armin Ronacher2017-01-071-1/+1
|
* Add a policy for the ascii literal behavior. Fixes #392Armin Ronacher2017-01-071-0/+1
|
* Ported tojson filter. Fixes #458Armin Ronacher2017-01-061-2/+4
|
* Make noopener the default for urlizeArmin Ronacher2016-12-311-0/+7
|
* Replace lambda for 'dict' in with dict itselfPeter Harris2015-01-231-1/+1
| | | | | | lambda **kw: kw is not equivalent to the dict constructor. It is much less useful. In particular it doesn't accept a sequence of pairs. Why not put dict itself into the DEFAULT_NAMESPACE? Principle of least surprise, etc.
* Merge remote-tracking branch 'kristi/master'Armin Ronacher2013-05-191-0/+1
|\
| * add lstrip_blocks environment setting, fix lexerKristi Tsukida2012-07-101-0/+1
| |
* | Merge remote-tracking branch 'wking/keep-trailing-newline'Armin Ronacher2013-05-191-0/+1
|\ \
| * | Add `keep_trailing_newline` to configure final endline strippingW. Trevor King2013-01-111-0/+1
| |/ | | | | | | | | | | | | | | | | | | 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
* | xrange -> range_type for consistencyArmin Ronacher2013-05-181-2/+2
| |
* | python 3 port: manual fixes, remove 2to3 from setup.py, remove fixersThomas Waldmann2013-05-181-0/+1
|/
* Removed unnecessary runtime check. Our 2to3 fixer fixes thatArmin Ronacher2010-02-171-7/+1
| | | | | | | automatically now. --HG-- branch : trunk
* It's a new yearArmin Ronacher2010-01-221-1/+1
| | | | | --HG-- branch : trunk
* Started to work on Python 3 support.Armin Ronacher2009-08-051-1/+7
| | | | | --HG-- branch : trunk
* Added support for line-based comments.Armin Ronacher2009-03-301-0/+1
| | | | | --HG-- branch : trunk
* This commit makes the parser and lexer use regular string comparison to ↵Ali Afshar2009-01-051-1/+1
| | | | | | | support jython --HG-- branch : trunk
* Copyright switch to "The Jinja Team".Armin Ronacher2009-01-041-1/+1
| | | | | --HG-- branch : trunk
* Implemented and documented "joiner"Armin Ronacher2008-10-131-2/+3
| | | | | --HG-- branch : trunk
* Various cleanups and added custom cycler.Armin Ronacher2008-10-051-2/+3
| | | | | --HG-- branch : trunk
* moved environment defaults to jinja2.defaultsArmin Ronacher2008-05-231-2/+6
| | | | | --HG-- branch : trunk
* void -> doArmin Ronacher2008-05-151-2/+1
| | | | | --HG-- branch : trunk
* switched back to explicit set for assignments. {% foo = 42 %} becomes {% ↵Armin Ronacher2008-05-131-1/+2
| | | | | | | set foo = 42 %} and {% foo.something() }} becomes {{ void(foo.something() }} with this commit. --HG-- branch : trunk
* improved sandbox, added proper striptags and updated documentation to latest ↵Armin Ronacher2008-05-041-0/+1
| | | | | | | sphinx changes --HG-- branch : trunk
* moved caching from loaders to environment and added environment overlaysArmin Ronacher2008-04-301-0/+13
| | | | | --HG-- branch : trunk
* fixed more unittestsArmin Ronacher2008-04-221-1/+3
| | | | | --HG-- branch : trunk
* refactored extensions a bitArmin Ronacher2008-04-201-5/+1
| | | | | --HG-- branch : trunk
* improved undefined behaviorArmin Ronacher2008-04-171-1/+1
| | | | | --HG-- branch : trunk
* simplified loader api and added builtin cachingArmin Ronacher2008-04-171-0/+1
| | | | | --HG-- branch : trunk
* updated a few filters and improved i18nArmin Ronacher2008-04-161-1/+5
| | | | | --HG-- branch : trunk
* added sandbox and exchageable undefined objectsArmin Ronacher2008-04-141-6/+4
| | | | | --HG-- branch : trunk
* converted unit tests, started rewriting filtersChristoph Hack2008-04-131-1/+3
| | | | | --HG-- branch : trunk
* optimize filters on constant valuesChristoph Hack2008-04-081-1/+1
| | | | | --HG-- branch : trunk
* a clean restartArmin Ronacher2008-03-311-0/+16
--HG-- branch : trunk rename : jinja/__init__.py => jinja2/__init__.py rename : jinja/_debugger.c => jinja2/_debugger.c rename : jinja/_native.py => jinja2/_native.py rename : jinja/_speedups.c => jinja2/_speedups.c rename : jinja/constants.py => jinja2/constants.py rename : jinja/contrib/__init__.py => jinja2/contrib/__init__.py rename : jinja/contrib/_djangosupport.py => jinja2/contrib/_djangosupport.py rename : jinja/contrib/djangosupport.py => jinja2/contrib/djangosupport.py rename : jinja/datastructure.py => jinja2/datastructure.py rename : jinja/defaults.py => jinja2/defaults.py rename : jinja/environment.py => jinja2/environment.py rename : jinja/exceptions.py => jinja2/exceptions.py rename : jinja/filters.py => jinja2/filters.py rename : jinja/lexer.py => jinja2/lexer.py rename : jinja/loaders.py => jinja2/loaders.py rename : jinja/nodes.py => jinja2/nodes.py rename : jinja/parser.py => jinja2/parser.py rename : jinja/tests.py => jinja2/tests.py rename : jinja/translators/__init__.py => jinja2/translators/__init__.py rename : jinja/translators/python.py => jinja2/translators/python.py rename : jinja/utils.py => jinja2/utils.py