Commit Graph

2761 Commits

Author SHA1 Message Date
наб
0cd6948192
don't apply urlize to @a@b 2024-12-19 20:37:58 -08:00
David Lord
106d61cba5
improve annotations for methods returning copies (#1880) 2024-12-19 20:28:13 -08:00
Victor Westerhuis
ded9915fc5
improve annotations for methods returning copies 2024-12-19 20:26:44 -08:00
David Lord
53c75915c9
Improve the PackageLoader error message (#1706) 2024-12-19 20:17:25 -08:00
David Lord
aaa083d265
separate messages, add test 2024-12-19 20:15:10 -08:00
Lily Foote
f54fa113d3
Improve the PackageLoader error message
This exception is raised when the `package_path` directory (default "templates") is not
found, so explain this.
2024-12-19 20:02:32 -08:00
David Lord
58a358f092
FileSystemLoader include paths in error (#1663) 2024-12-19 19:38:22 -08:00
David Lord
227edfd372
clean up message, add test 2024-12-19 19:34:34 -08:00
Yourun-Proger
ed5f76206a
FileSystemLoader includes search paths in error 2024-12-19 19:33:29 -08:00
David Lord
b4b28ec01c
fix default for Environment.overlay(enable_async) (#2061) 2024-12-19 18:23:52 -08:00
SamyCookie
e45bc745a7
Bugfix: wrong default argument for Environment.overlay(enable_async) parameter 2024-12-19 18:22:32 -08:00
David Lord
767b236176
fix f-string syntax error in code generation (#1852) 2024-12-19 18:10:28 -08:00
Sigurd Spieckermann
56a724644b
fix f-string syntax error in code generation 2024-12-19 18:08:42 -08:00
David Lord
48b0687e05
Merge commit from fork
fix format string vulnerability
2024-12-19 14:33:08 -08:00
Lydxn
91a972f580
sandbox indirect calls to str.format 2024-12-19 12:34:27 -08:00
David Lord
0871c71d01
rearrange change entry 2024-12-19 12:07:14 -08:00
David Lord
91e3521173
sandbox disallows clear and pop on mutable sequence (#2033) 2024-12-19 08:36:07 -08:00
Dylan Scott
b512058270
sandbox disallows clear and pop on mutable sequence 2024-12-19 08:33:38 -08:00
David Lord
1dc04bccf9
Fix pickle/copy support for the missing singleton (#2029) 2024-12-19 08:20:38 -08:00
Matt Clay
7232b82462
Fix pickle/copy support for the missing singleton 2024-12-19 08:19:07 -08:00
David Lord
ba8847a466
Preserve __slots__ metadata on Undefined types (#2026) 2024-12-19 08:14:53 -08:00
Matt Davis
d4fb0e8c40
preserve __slots__ on Undefined classes 2024-12-19 08:11:49 -08:00
David Lord
39d9ffff1f
Make compiled output deterministic for tuple unpacking in set tag (#2022) 2024-12-19 08:05:48 -08:00
Anentropic
4936e4d482
make tuple unpacking deterministic in compiler 2024-12-19 08:02:33 -08:00
David Lord
3ef3ba885b
fix how int filter handles scientific notation (#1984) 2024-12-19 07:59:45 -08:00
Felipe Moreno
2eb4542cba
int filter handles OverflowError to handle scientific notation 2024-12-19 07:58:25 -08:00
David Lord
20be10e566
make unique filter async aware (#1782) 2024-12-19 07:26:24 -08:00
Mehdi ABAAKOUK
76af7110ea
make unique filter async-aware 2024-12-19 07:19:13 -08:00
David Lord
a4abbfd753
Use correct concat function for blocks evaluation (#1702) 2024-12-19 07:15:37 -08:00
Martin Krizek
d3a0b1a4ab
use env.concat when calling block reference 2024-12-19 07:12:43 -08:00
David Lord
791dd3b041
Simplify example for ModuleLoader (#1695) 2024-12-18 16:08:33 -08:00
Charles-Axel Dein
955d7daf3d
Simplify example for ModuleLoader
The `ModuleLoader` example seems copy pasted from `ChoiceLoader`. As a result it's not immediately clear how their API differ.
2024-12-18 10:07:18 -08:00
David Lord
13ce60bad8
fix Jinja syntax in example (#2056) 2024-12-18 09:47:24 -08:00
JamesParrott
0c0a3d02d1
fix Jinja syntax in example 2024-12-18 09:44:30 -08:00
David Lord
3d0a7d7b0f
clarify blocks docs (#2060) 2024-12-18 09:39:32 -08:00
David Lord
786d12b529
clarify block outer scope docs 2024-12-18 09:36:11 -08:00
David Lord
c667d56de3
change "per default" to "by default" 2024-12-18 09:33:31 -08:00
David Lord
a12789e7f9
fix list comprehension example (#2017) 2024-12-18 09:21:09 -08:00
Andreas Lindhé
75f0fbf6cb
fix list comprehension example 2024-12-18 09:17:18 -08:00
David Lord
13c42b3aab
Slightly improve clarity of logical bool ops (#1938) 2024-12-18 09:13:55 -08:00
Stephen Rosen
64a6bd1b66
improve clarity of logical bool ops
co-authored-by: David Lord <davidism@gmail.com>
2024-12-18 09:11:57 -08:00
David Lord
619d8eef41
Fix typo on filter name (#1911) 2024-12-18 08:54:02 -08:00
Vitor Buxbaum
7d023e5a86
Fix typo on filter name 2024-12-18 08:52:06 -08:00
David Lord
420082efa5
fix a typo in docs/templates.rst (#1881) 2024-12-18 08:50:01 -08:00
Meng Xiangzhuo
8a90b760a8
fix a typo in docs/templates.rst 2024-12-18 08:48:25 -08:00
David Lord
058e059662
fix boolean error about whitespace control (#1819) 2024-12-18 08:46:48 -08:00
Hugo Vassard
9c3622c1af
fix boolean error about whitespace control 2024-12-18 08:44:58 -08:00
David Lord
da6729990f
Clarify what operations the default "Undefined" supports (#1818) 2024-12-18 08:36:06 -08:00
Clay Sweetser
4e7850ce1b
Clarify what operations the default Undefined supports 2024-12-18 08:34:47 -08:00
David Lord
9849db5215
Add link to MarkupSafe project mentioned in FAQ (#1767) 2024-12-18 08:29:29 -08:00