Skip to content

Commit

Permalink
fix: correctly render .webp and .otf files in env
Browse files Browse the repository at this point in the history
This partially addresses overhangio#985.

---------

Co-authored-by: Ravi Khetani <r.khetani@institute.global>
  • Loading branch information
2 people authored and kdmccormick committed Feb 8, 2024
1 parent fdeb4b6 commit 7ea76e2
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/20240118_155012_r.khetani.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[Improvement] Add `.webp` and. `.otf` extensions to list of binary extensions to ignore when rendering templates.
12 changes: 11 additions & 1 deletion tutor/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,17 @@

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]


Expand Down

0 comments on commit 7ea76e2

Please sign in to comment.