Skip to content

Commit

Permalink
Add .webp and .otf file extensions to list of binary file extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Ravi Khetani committed Jan 18, 2024
1 parent 9d3d9e6 commit 83f983d
Show file tree
Hide file tree
Showing 2 changed files with 2 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.
2 changes: 1 addition & 1 deletion tutor/env.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@

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 83f983d

Please sign in to comment.