Skip to content

Commit ffbee13

Browse files
committed
Tidy up import map implementation.
1 parent ae1efcb commit ffbee13

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

pages/_page.xnode

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
<link rel="icon" type="image/png" href="/_static/icon.png" />
1616
<link rel="stylesheet" href="/_static/site.css" type="text/css" media="screen" />
17-
18-
#{controller[:import_map].relative_to(request.path + "/").to_html}
17+
18+
#{Utopia::Project::IMPORT_MAP.relative_to(request.path + "/")}
1919

2020
<script src="/_components/jquery/jquery.min.js"></script>
2121
<script src="/_components/jquery-syntax/jquery.syntax.min.js"></script>

pages/controller.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
on "**" do
99
@base = Utopia::Project::Base.instance
10-
@import_map = Utopia::Project::IMPORT_MAP
1110
end
1211

1312
on "index" do

utopia-project.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
3030
spec.add_dependency "markly", "~> 0.7"
3131
spec.add_dependency "rackula", "~> 1.3"
3232
spec.add_dependency "thread-local"
33-
spec.add_dependency "utopia", "~> 2.31"
33+
spec.add_dependency "utopia", "~> 2.32"
3434
end

0 commit comments

Comments
 (0)