summaryrefslogtreecommitdiff
path: root/jinja2
Commit message (Collapse)AuthorAgeFilesLines
* async templates await attribute accessrefactor-loop-contextDavid Lord2019-11-071-0/+12
|
* don't prefetch next item in loop contextDavid Lord2019-11-073-151/+224
|
* clarify quoting behavior of urlencode filterDavid Lord2019-11-042-26/+44
|
* add break_on_hyphens parameter to wordwrap filterAlessandro -oggei- Ogier2019-11-011-1/+15
|
* reformat, doc, and test for wordwrapDavid Lord2019-11-011-28/+35
|
* let wordwrap filter respect existing newlinesFlorian Heinle2019-11-011-3/+17
| | | | | | | | | | | textwrap.wrap() has unexpected behaviour where when wrapping multiple paragraphs it will not consider existing newlines. I.e. when your first paragraph ends on col 75, the next paragraph will be wrapped on col 5 already. This patch is wrapping each line individually and combining it back together.
* Merge pull request #673 from MrSenko/get_corresponding_lineno_tracebackDavid Lord2019-11-011-2/+4
|\ | | | | handle template.get_corresponding_lineno() for lines without debug info
| * Return empty list when debug_info is empty stringMr. Senko2017-01-291-2/+4
| |
* | compile writes utf8David Lord2019-10-281-7/+7
| |
* | creating a NativeTemplate creates a NativeEnvironmentnative-template-envDavid Lord2019-10-282-16/+27
| |
* | don't create a third queueDavid Lord2019-10-241-2/+1
| |
* | LRUCache.copy initializes queue methodsRyan Siemens2019-10-241-0/+1
| |
* | use "Jinja" instead of "Jinja2"David Lord2019-10-231-1/+1
| |
* | use "Jinja" instead of "Jinja2"David Lord2019-10-239-16/+16
| |
* | preserve quotes between nodes in native envDavid Lord2019-10-221-17/+32
| |
* | use fspath instead of strDavid Lord2019-10-212-18/+37
| |
* | support pathlib in FileSystemLoader and ModuleLoaderAlex Chan2019-10-212-6/+16
| |
* | clarify cycler.next() behaviorDavid Lord2019-10-201-6/+32
| |
* | clean up i18n documentationDavid Lord2019-10-191-1/+5
| | | | | | | | | | | | | | | | explain enabling newstyle organize newstyle advantages mention escaping percent signs for formatting mention marking format parameters as safe fix newstyle ref
* | document equivalent generator expressions for filtersDavid Lord2019-10-181-0/+35
| | | | | | | | closes #1068
* | document how ContextReference relates to contextfunctionDavid Lord2019-10-181-0/+5
| | | | | | | | closes #762
* | document formatting methods in format filterDavid Lord2019-10-181-4/+15
| | | | | | | | closes #566
* | PackageLoader doesn't depend on setuptoolsDavid Lord2019-10-171-47/+92
| |
* | fixing LoopContext, loops indexing and iterator length propertyaayushuppal2019-10-141-12/+11
| |
* | Don't make cond_expr_undefined configurableAdrian Moennich2019-10-133-19/+8
| |
* | Use separate undefined object for CondExprAdrian Moennich2019-10-132-5/+19
| |
* | skip template with same name as directoryDavid Lord2019-10-131-7/+6
| | | | | | | | | | | | When using multiple paths with FileSystemLoader, a template with the same name as a directory will not prevent loading a template in the directory.
* | don't finalize TemplateData nodesno-finalize-template-dataDavid Lord2019-10-121-30/+37
| | | | | | | | | | Finalize only applies to the output of expressions (constant or not). Add tests for context, eval, and env finalize functions.
* | consistent use of token constantsDavid Lord2019-10-101-25/+31
| |
* | Add more strict type testsDag Wieers2019-10-091-0/+47
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds a few more type-related tests. - boolean Testing of an object is a boolean required 2 tests. - false Make this similar to testing none value - true Make this similar to testing none value - integer The existing 'number' test does not make a distinction between integer, float or even booleans - float The existing 'number' test does not make a distinction between integer, float or even booleans
* | use slots for lexer lstrip markerDavid Lord2019-10-071-0/+2
| |
* | Merge pull request #938 from stevenorum/masterDavid Lord2019-10-071-0/+2
|\ \ | | | | | | Fixing compiler handling of parens around boolean comparisons.
| * | Fixing compiler handling of parens around boolean comparisons.Steve Norum2019-01-121-0/+2
| | |
* | | add comments about lstrip codeDavid Lord2019-10-061-20/+37
| | |
* | | Merge branch 'master' into 857-lexer-whitespace-performanceDavid Lord2019-10-0612-108/+283
|\ \ \
| * | | document debug extensionDavid Lord2019-10-041-27/+20
| | | |
| * | | don't bypass autoescapeDavid Lord2019-10-041-16/+12
| | | |
| * | | Add support for a {% debug %} extension tag.Shaheed Haque2019-10-041-2/+64
| | | | | | | | | | | | | | | | This dumps the available variables, filters and tests.
| * | | Fix bug with when using Markup on ChainableUndefinedLaurence de Bruxelles2019-10-041-4/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrapping a ChainableUndefined object with Markup causes an UndefinedError because Markup thinks that ChainableUndefined has an attribute called __html__ and tries to call it. This commit fixes this by defining a method __html__ that calls ChainableUndefined.__str__. We also add a regression test.
| * | | add chars option to trimMatteo Ferrando2019-10-041-3/+3
| | | |
| * | | Merge branch '2.10.x'David Lord2019-10-041-1/+1
| |\ \ \
| | * | | release version 2.10.22.10.2David Lord2019-10-041-1/+1
| | | | |
| | * | | update project metadataDavid Lord2019-10-041-1/+1
| | | | |
| * | | | Prevent deadlock in LRUCache.setdefaultEtiennePelletier2019-10-041-10/+5
| | | | | | | | | | | | | | | | | | | | | | | | | setdefault was acquiring write_lock, then calling getitem and also potentially setitem, which also both try to acquire the write lock.
| * | | | Merge pull request #1040 from minho42/Simplify-import-splitDavid Lord2019-10-041-3/+1
| |\ \ \ \ | | | | | | | | | | | | Simplify splitting import_name in import_string()
| | * | | | Simplify splitting import_name in import_string()Min ho Kim2019-07-241-3/+1
| | | | | |
| * | | | | Fix simple typo: problemtic -> problematic (#1059)Tim Gates2019-09-041-3/+2
| | | | | | | | | | | | | | | | | | Plus rephrase the comment for greater clarity.
| * | | | | Merge branch '2.10.x'David Lord2019-09-041-5/+11
| |\ \ \ \ \ | | | |/ / / | | |/| | |
| | * | | | Fix TracebackFrameProxy.set_next() on Python 3.7Victor Stinner2019-09-041-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix issue #1050: fix a crash in TracebackFrameProxy.set_next() on Python 3.7 and newer, when Python is build in debug mode. Since Python 3.7, traceback.tb_next field can be modified: ctypes is no longer needed.
| * | | | | Merge branch '2.10.x'David Lord2019-07-262-7/+10
| |\ \ \ \ \ | | |/ / / /