christianwgd / django-bootstrap-icons

A quick way to add Bootstrap Icons with Django template tags.
MIT License
24 stars 7 forks source link

feat: Add feature for using local copies of icon sets. #26

Closed Kagee closed 3 months ago

Kagee commented 3 months ago

Add BS_ICONS_BASE_PATH and MD_ICONS_BASE_PATH to use local copies of icon sets. This removes the need to call out to CDNs to download the icons.

This has been manually tested by using default (URL), and valid, invalid, and paths with no read access for both BS_ICONS_BASE_PATH and MD_ICONS_BASE_PATH.

I also replaced <{icon_path}> with `{icon_path}` as the former did not render properly.