6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-11-14 09:14:14 +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:
ravikhetani 2024-01-22 12:18:29 +00:00 committed by GitHub
parent 94d5afa637
commit b832f519ca
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1 @@
[Improvement] Add `.webp` and. `.otf` extensions to list of binary extensions to ignore when rendering templates.

View File

@ -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]