Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | workpatch-traceback | David Lord | 2019-11-27 | 4 | -378/+157 |
| | |||||
* | 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 | ||||
| * | | use fspath instead of str | David Lord | 2019-10-21 | 3 | -21/+40 |
| | | | |||||
| * | | support pathlib in FileSystemLoader and ModuleLoader | Alex Chan | 2019-10-21 | 6 | -14/+114 |
|/ / | |||||
* | | Merge pull request #1085 from pallets/docs-cycler | David Lord | 2019-10-20 | 2 | -25/+54 |
|\ \ | | | | | | | clarify cycler.next() behavior | ||||
| * | | clarify cycler.next() behavior | David Lord | 2019-10-20 | 2 | -25/+54 |
|/ / | |||||
* | | Merge pull request #1084 from pallets/i18n-docs | David Lord | 2019-10-19 | 3 | -115/+153 |
|\ \ | | | | | | | clean up i18n documentation | ||||
| * | | clean up i18n documentation | David Lord | 2019-10-19 | 3 | -115/+153 |
|/ / | | | | | | | | | | | | | | | explain enabling newstyle organize newstyle advantages mention escaping percent signs for formatting mention marking format parameters as safe fix newstyle ref | ||||
* | | Merge pull request #1083 from pallets/docs-changes | David Lord | 2019-10-18 | 3 | -53/+139 |
|\ \ | | | | | | | Address various documentation requests | ||||
| * | | document equivalent generator expressions for filters | David Lord | 2019-10-18 | 1 | -0/+35 |
| | | | | | | | | | | | | closes #1068 | ||||
| * | | document how ContextReference relates to contextfunction | David Lord | 2019-10-18 | 1 | -0/+5 |
| | | | | | | | | | | | | closes #762 | ||||
| * | | document formatting methods in format filter | David Lord | 2019-10-18 | 1 | -4/+15 |
| | | | | | | | | | | | | closes #566 | ||||
| * | | document lack of file extension | David Lord | 2019-10-18 | 1 | -0/+14 |
| | | | | | | | | | | | | closes #547 | ||||
| * | | document behavior of block tag in if block | David Lord | 2019-10-18 | 1 | -0/+4 |
| | | | | | | | | | | | | closes #423 | ||||
| * | | format expression docs | David Lord | 2019-10-18 | 1 | -37/+37 |
| | | | |||||
| * | | improve docs about string methods in templates | David Lord | 2019-10-18 | 1 | -12/+29 |
|/ / | | | | | | | closes #273 |