File tree Expand file tree Collapse file tree 1 file changed +6
-7
lines changed
django_simple_bulma/templatetags Expand file tree Collapse file tree 1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 88from django .templatetags .static import static
99from django .utils .safestring import SafeString , mark_safe
1010
11- from ..utils import (
12- fontawesome_token ,
13- get_js_files ,
14- logger ,
15- themes ,
16- )
17-
1811register = template .Library ()
1912
2013
2114@register .simple_tag
2215def bulma (theme : str = "" ) -> SafeString :
2316 """Build static files required for Bulma."""
17+ from ..utils import (
18+ get_js_files ,
19+ logger ,
20+ themes ,
21+ )
2422 if theme and theme not in themes :
2523 logger .warning (
2624 f"Theme '{ theme } ' does not match any of the detected themes: { ', ' .join (themes )} . "
@@ -50,6 +48,7 @@ def font_awesome() -> SafeString:
5048 Returns whatever kit has been specified in BULMA_SETTINGS.
5149 If none is provided, default to version 5.14.0
5250 """
51+ from ..utils import fontawesome_token
5352 if fontawesome_token :
5453 cdn_link = (
5554 '<link rel="preload" '
You can’t perform that action at this time.
0 commit comments