mirror of
https://github.com/ChristianLight/tutor.git
synced 2024-11-13 08:46:34 +00:00
fix: correctly render .webp and .otf files in env
This partially addresses #985. --------- Co-authored-by: Ravi Khetani <r.khetani@institute.global>
This commit is contained in:
parent
94d5afa637
commit
b832f519ca
1
changelog.d/20240118_155012_r.khetani.md
Normal file
1
changelog.d/20240118_155012_r.khetani.md
Normal file
@ -0,0 +1 @@
|
||||
[Improvement] Add `.webp` and. `.otf` extensions to list of binary extensions to ignore when rendering templates.
|
12
tutor/env.py
12
tutor/env.py
@ -15,7 +15,17 @@ from tutor.types import Config, ConfigValue
|
||||
|
||||
TEMPLATES_ROOT = pkg_resources.resource_filename("tutor", "templates")
|
||||
VERSION_FILENAME = "version"
|
||||
BIN_FILE_EXTENSIONS = [".ico", ".jpg", ".patch", ".png", ".ttf", ".woff", ".woff2"]
|
||||
BIN_FILE_EXTENSIONS = [
|
||||
".ico",
|
||||
".jpg",
|
||||
".otf",
|
||||
".patch",
|
||||
".png",
|
||||
".ttf",
|
||||
".webp",
|
||||
".woff",
|
||||
".woff2",
|
||||
]
|
||||
JinjaFilter = t.Callable[..., t.Any]
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user