Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions lib/stdlib/themes/bootstrap/core/core.opa
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,12 @@ Bootstrap = {{
{some=url} -> Resource.register_external_css(url)
{none} -> void

@private
import_bs_js(name:string) =
match Map.get(name, uri_bs)
{some=url} -> Resource.register_external_js(url)
{none} -> void

@private
fallback_url(v:string) =
if String.le(v, "1.4.0") then
Expand All @@ -142,6 +148,8 @@ Bootstrap = {{
import_responsive_css(v:string) = // responsive only
if String.lt(v, "3.0.0") then
import_bs("{bs_resources_path}/{v}/css/bootstrap-responsive.min.css")
else
import_bs_js("{bs_resources_path}/{v}/js/bootstrap.min.js")

@package
import_icons(v:string) = // icons only
Expand Down