Update dark view

This commit is contained in:
2023-10-30 19:22:25 +11:00
parent 23909b9e29
commit 65539fa039
13 changed files with 2933 additions and 27 deletions

View File

@@ -0,0 +1,20 @@
module Adamantium
module Views
class Context < Hanami::View::Context
include Hanami::View::ContextHelpers::ContentHelpers
def initialize(**options)
@options = options
super(**options)
end
def asset_by_name(name)
if Hanami.env == :development
"/assets/#{name}"
else
assets[name]
end
end
end
end
end