Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| * | minor: fix typo in docstring | Daniel Hahler | 2020-01-06 | 1 | -1/+1 | |
|/ | ||||||
* | Merge pull request #1115 from myii/patch-2 | David Lord | 2019-12-08 | 1 | -1/+1 | |
|\ | | | | | fix typo in templates.rst, "hat" to "that" | |||||
| * | fix(templates.rst): fix typo (`hat` => `that`) | Imran Iqbal | 2019-12-08 | 1 | -1/+1 | |
|/ | ||||||
* | Merge pull request #1114 from pallets/import-undefined | David Lord | 2019-12-05 | 5 | -25/+95 | |
|\ | | | | | handle Undefined in get/select_template | |||||
| * | handle Undefined in get/select_template | David Lord | 2019-12-05 | 5 | -25/+95 | |
|/ | ||||||
* | Merge pull request #1113 from pallets/namespace-loader | David Lord | 2019-12-05 | 2 | -10/+43 | |
|\ | | | | | PackageLoader understands namespace packages | |||||
| * | PackageLoader understands namespace packages | David Lord | 2019-12-05 | 2 | -10/+43 | |
|/ | ||||||
* | Merge pull request #1112 from pallets/include-syntax-error-source | David Lord | 2019-12-03 | 3 | -10/+25 | |
|\ | | | | | TemplateSyntaxError from included template has source | |||||
| * | TemplateSyntaxError from included template has source | David Lord | 2019-12-03 | 3 | -10/+25 | |
|/ | ||||||
* | Merge pull request #1111 from pallets/optimizer-nodes | David Lord | 2019-12-03 | 2 | -16/+18 | |
|\ | | | | | apply optimizer to all Expr nodes | |||||
| * | apply optimizer to all Expr nodes | David Lord | 2019-12-03 | 2 | -16/+18 | |
|/ | ||||||
* | Merge pull request #861 from OddBloke/contextreference_locals | David Lord | 2019-12-02 | 4 | -4/+36 | |
|\ | | | | | Add a DerivedContextReference node type | |||||
| * | add a node for derived context references | Daniel Watkins | 2019-12-02 | 4 | -4/+36 | |
|/ | | | | | This allows extensions to access locals in the scope from which they were called. | |||||
* | Merge pull request #1110 from pallets/patch-traceback | David Lord | 2019-12-02 | 6 | -379/+234 | |
|\ | | | | | rewrite traceback rewriting support | |||||
| * | rewrite traceback rewriting support | David Lord | 2019-12-02 | 6 | -379/+234 | |
|/ | | | | | | | | | | | | | Simplify the `jinja.debug` code. On Python >= 3.7, `tb_next` is directly assignable. On PyPy, use transparent proxies only if support is enabled. For cpython < 3.7, use ctypes to set `tb_next`. Rewrite the ctypes code to use `py_object` and `pythonapi.Py_IncRef`, which seems to avoid crashing on debug builds. On Python 3, a rewritten `TemplateSyntaxError` would retain the frames from the compiler functions for some reason. Clear these so the template source is the last thing in the traceback. | |||||
* | Merge pull request #1109 from pallets/visit-output-refactor | David Lord | 2019-11-20 | 5 | -297/+188 | |
|\ | | | | | refactor visit_Output | |||||
| * | refactor visit_Output | David Lord | 2019-11-20 | 5 | -297/+188 | |
|/ | | | | | | | | | | | | * `finalize` is generated once and cached for all nodes. * Extract common behavior for native env. Removed the compiler behavior where groups of nodes would generate a format string. Instead, individual nodes are always yielded. This made rendering 30% faster in the examples, and simplifies the code. It also removes the issue where Python would report either the first or last line of the multi-line format expression, messing up the traceback line number mapping. | |||||
* | Merge pull request #1105 from areebbeigh/issue-1102 | David Lord | 2019-11-20 | 3 | -8/+41 | |
|\ | | | | | nodes.py: Return on first false in Compare() expr | |||||
| * | add test and changelog for constant comparison folding | David Lord | 2019-11-20 | 3 | -8/+39 | |
| | | ||||||
| * | return on first false when folding Compare node | areebbeigh | 2019-11-20 | 1 | -0/+2 | |
|/ | ||||||
* | Merge pull request #1108 from captainmalloc/runtime_calls | David Lord | 2019-11-20 | 3 | -6/+4 | |
|\ | | | | | Use 'callable' instead of typechecking for runtime calls ctx/env injection | |||||
| * | use 'callable' instead of typechecking to inject context | Adriano Scoditti | 2019-11-20 | 3 | -6/+4 | |
|/ | ||||||
* | Merge pull request #1101 from pallets/refactor-loop-context | David Lord | 2019-11-08 | 6 | -176/+273 | |
|\ | | | | | don't prefetch next item in loop context | |||||
| * | async templates await attribute accessrefactor-loop-context | David Lord | 2019-11-07 | 4 | -25/+49 | |
| | | ||||||
| * | don't prefetch next item in loop context | David Lord | 2019-11-07 | 3 | -151/+224 | |
|/ | ||||||
* | Merge pull request #1098 from pallets/urlencode-docs | David Lord | 2019-11-04 | 3 | -38/+61 | |
|\ | | | | | clarify quoting behavior of urlencode filter | |||||
| * | clarify quoting behavior of urlencode filter | David Lord | 2019-11-04 | 3 | -38/+61 | |
|/ | ||||||
* | Merge pull request #829 from aogier/feature/550-hyphens-wordwrap | David Lord | 2019-11-01 | 2 | -1/+17 | |
|\ | | | | | Exposing Textwrapper break_on_hyphens option to wordwrap filter | |||||
| * | add break_on_hyphens parameter to wordwrap filter | Alessandro -oggei- Ogier | 2019-11-01 | 2 | -1/+17 | |
|/ | ||||||
* | Merge pull request #766 from fheinle/palletes_jinja_175-wordwrap | David Lord | 2019-11-01 | 3 | -15/+45 | |
|\ | | | | | Let wordwrap filter respect existing newlines | |||||
| * | reformat, doc, and test for wordwrap | David Lord | 2019-11-01 | 3 | -28/+44 | |
| | | ||||||
| * | let wordwrap filter respect existing newlines | Florian Heinle | 2019-11-01 | 1 | -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_traceback | David Lord | 2019-11-01 | 2 | -2/+8 | |
|\ | | | | | handle template.get_corresponding_lineno() for lines without debug info | |||||
| * | Return empty list when debug_info is empty string | Mr. Senko | 2017-01-29 | 1 | -2/+4 | |
| | | ||||||
| * | Add test for Template.get_corresponding_lineno() | Mr. Senko | 2017-01-29 | 1 | -0/+4 | |
| | | | | | | | | this currently breaks with an exception inside Jinja | |||||
* | | Merge pull request #1096 from pallets/compile-encoding | David Lord | 2019-10-28 | 2 | -7/+9 | |
|\ \ | | | | | | | compile writes utf8 | |||||
| * | | compile writes utf8 | David Lord | 2019-10-28 | 2 | -7/+9 | |
|/ / | ||||||
* | | Merge pull request #1095 from pallets/native-template-env | David Lord | 2019-10-28 | 4 | -135/+153 | |
|\ \ | | | | | | | creating a NativeTemplate creates a NativeEnvironment | |||||
| * | | creating a NativeTemplate creates a NativeEnvironmentnative-template-env | David Lord | 2019-10-28 | 4 | -135/+153 | |
| | | | ||||||
* | | | Merge pull request #1093 from cclauss/print-function | David Lord | 2019-10-28 | 12 | -11/+22 | |
|\ \ \ | |/ / |/| | | Use print() function in both Python2 and Python 3 | |||||
| * | | Use print() function in both Python2 and Python 3 | cclauss | 2019-10-27 | 12 | -11/+22 | |
|/ / | ||||||
* | | Merge pull request #1090 from pallets/lrucache-copy | David Lord | 2019-10-24 | 3 | -3/+17 | |
|\ \ | | | | | | | LRUCache.copy's queue methods point to the correct queue | |||||
| * | | don't create a third queue | David Lord | 2019-10-24 | 3 | -5/+5 | |
| | | | ||||||
| * | | LRUCache.copy initializes queue methods | Ryan Siemens | 2019-10-24 | 3 | -1/+15 | |
|/ / | ||||||
* | | use "Jinja" instead of "Jinja2" | David Lord | 2019-10-23 | 3 | -6/+6 | |
| | | ||||||
* | | Merge pull request #1087 from pallets/jinja-name | David Lord | 2019-10-23 | 30 | -160/+158 | |
|\ \ | | | | | | | use "Jinja" instead of "Jinja2" | |||||
| * | | use "Jinja" instead of "Jinja2" | David Lord | 2019-10-23 | 30 | -160/+158 | |
|/ / | ||||||
* | | Merge pull request #1086 from pallets/native-string-literal | David Lord | 2019-10-22 | 3 | -18/+52 | |
|\ \ | | | | | | | preserve quotes between nodes in native env | |||||
| * | | preserve quotes between nodes in native env | David Lord | 2019-10-22 | 3 | -18/+52 | |
|/ / | ||||||
* | | Merge pull request #1064 from alexwlchan/support-pathlib | David Lord | 2019-10-21 | 6 | -17/+136 | |
|\ \ | | | | | | | Support paths created with pathlib in FileSystemLoader and ModuleLoader |