Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[pull] main from pallets:main #18

Merged
merged 70 commits into from
Dec 21, 2024
Merged
Changes from 1 commit
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
f502aac
Add link to MarkupSafe in FAQ
matheusfelipeog Dec 1, 2022
9849db5
Add link to MarkupSafe project mentioned in FAQ (#1767)
davidism Dec 18, 2024
4e7850c
Clarify what operations the default Undefined supports
Varriount Mar 2, 2023
da67299
Clarify what operations the default "Undefined" supports (#1818)
davidism Dec 18, 2024
9c3622c
fix boolean error about whitespace control
hvassard Mar 3, 2023
058e059
fix boolean error about whitespace control (#1819)
davidism Dec 18, 2024
8a90b76
fix a typo in docs/templates.rst
xzmeng Aug 29, 2023
420082e
fix a typo in docs/templates.rst (#1881)
davidism Dec 18, 2024
7d023e5
Fix typo on filter name
vbuxbaum Nov 17, 2023
619d8ee
Fix typo on filter name (#1911)
davidism Dec 18, 2024
64a6bd1
improve clarity of logical bool ops
sirosen Feb 16, 2024
13c42b3
Slightly improve clarity of logical bool ops (#1938)
davidism Dec 18, 2024
75f0fbf
fix list comprehension example
lindhe Aug 12, 2024
a12789e
fix list comprehension example (#2017)
davidism Dec 18, 2024
c667d56
change "per default" to "by default"
davidism Dec 18, 2024
786d12b
clarify block outer scope docs
davidism Dec 18, 2024
3d0a7d7
clarify blocks docs (#2060)
davidism Dec 18, 2024
0c0a3d0
fix Jinja syntax in example
JamesParrott Dec 9, 2024
13ce60b
fix Jinja syntax in example (#2056)
davidism Dec 18, 2024
955d7da
Simplify example for ModuleLoader
charlax Jul 26, 2022
791dd3b
Simplify example for ModuleLoader (#1695)
davidism Dec 19, 2024
d3a0b1a
use env.concat when calling block reference
mkrizek Aug 9, 2022
a4abbfd
Use correct concat function for blocks evaluation (#1702)
davidism Dec 19, 2024
76af711
make unique filter async-aware
sileht Dec 23, 2022
20be10e
make unique filter async aware (#1782)
davidism Dec 19, 2024
2eb4542
int filter handles OverflowError to handle scientific notation
flpm May 20, 2024
3ef3ba8
fix how int filter handles scientific notation (#1984)
davidism Dec 19, 2024
4936e4d
make tuple unpacking deterministic in compiler
anentropic Sep 3, 2024
39d9fff
Make compiled output deterministic for tuple unpacking in set tag (#2…
davidism Dec 19, 2024
d4fb0e8
preserve `__slots__` on Undefined classes
nitzmahone Oct 1, 2024
ba8847a
Preserve `__slots__` metadata on Undefined types (#2026)
davidism Dec 19, 2024
7232b82
Fix pickle/copy support for the `missing` singleton
mattclay Oct 1, 2024
1dc04bc
Fix pickle/copy support for the `missing` singleton (#2029)
davidism Dec 19, 2024
b512058
sandbox disallows `clear` and `pop` on mutable sequence
dylanscott Oct 4, 2024
91e3521
sandbox disallows `clear` and `pop` on mutable sequence (#2033)
davidism Dec 19, 2024
0871c71
rearrange change entry
davidism Dec 19, 2024
91a972f
sandbox indirect calls to str.format
Lydxn2 Sep 23, 2024
48b0687
Merge commit from fork
davidism Dec 19, 2024
56a7246
fix f-string syntax error in code generation
sisp May 26, 2023
767b236
fix f-string syntax error in code generation (#1852)
davidism Dec 20, 2024
e45bc74
Bugfix: wrong default argument for `Environment.overlay(enable_async)…
SamyCookie Dec 19, 2024
b4b28ec
fix default for `Environment.overlay(enable_async)` (#2061)
davidism Dec 20, 2024
ed5f762
FileSystemLoader includes search paths in error
Yourun-proger May 2, 2022
227edfd
clean up message, add test
davidism Dec 20, 2024
58a358f
`FileSystemLoader` include paths in error (#1663)
davidism Dec 20, 2024
f54fa11
Improve the PackageLoader error message
LilyFoote Aug 11, 2022
aaa083d
separate messages, add test
davidism Dec 20, 2024
53c7591
Improve the PackageLoader error message (#1706)
davidism Dec 20, 2024
ded9915
improve annotations for methods returning copies
viccie30 Aug 23, 2023
106d61c
improve annotations for methods returning copies (#1880)
davidism Dec 20, 2024
0cd6948
don't apply `urlize` to `@a@b`
nabijaczleweli Jul 20, 2023
7a41ddb
don't apply `urlize` to `@a@b` (#2062)
davidism Dec 20, 2024
d05bd38
Pass context when using select
rgroothuijsen Nov 16, 2022
028f61d
Pass context to test when using select (#1762)
davidism Dec 20, 2024
ae68c96
document SandboxedNativeEnvironment pattern
davidism Dec 20, 2024
e7cb37d
document SandboxedNativeEnvironment pattern (#2063)
davidism Dec 20, 2024
d6998ab
Make ease of use update to template documentation
ratchek Dec 13, 2023
8a8eafc
edit block assignment section
davidism Dec 20, 2024
1d55cdd
Triple quotes in docs (#2064)
davidism Dec 20, 2024
ee83219
Add support for namespaces in tuple assignment
kevin-brown May 2, 2022
b8f4831
more comments about nsref assignment
davidism Dec 20, 2024
fbc3a69
Add support for namespaces in tuple parsing (#1664)
davidism Dec 20, 2024
66587ce
Fix bug where set would sometimes fail within if
kevin-brown May 2, 2022
c8fdce1
Fix bug involving calling set on a template parameter within all bran…
davidism Dec 21, 2024
eda8fe8
update dev dependencies
davidism Dec 21, 2024
8d58859
remove test pypi
davidism Dec 21, 2024
877f6e5
release version 3.1.5
davidism Dec 21, 2024
b4ffc8f
release version 3.1.5 (#2066)
davidism Dec 21, 2024
ab8218c
use project advisory link instead of global
davidism Dec 21, 2024
6aeab5d
Merge branch 'stable'
davidism Dec 21, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Improve the PackageLoader error message
This exception is raised when the `package_path` directory (default "templates") is not
found, so explain this.
  • Loading branch information
LilyFoote authored and davidism committed Dec 20, 2024
commit f54fa113d38230cd7a8e8de1a8ced0f24e344a4e
4 changes: 2 additions & 2 deletions src/jinja2/loaders.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,8 +353,8 @@ def __init__(

if template_root is None:
raise ValueError(
f"The {package_name!r} package was not installed in a"
" way that PackageLoader understands."
f"PackageLoader could not find a '{package_path}' directory for the "
f"{package_name!r} package."
)

self._template_root = template_root
Expand Down