Module: Spina::SpinaHelper

Defined in:
app/helpers/spina/spina_helper.rb

Instance Method Summary collapse

Instance Method Details

#spina_importmap_tags(entry_point = "application") ⇒ Object



2
3
4
5
6
7
8
# File 'app/helpers/spina/spina_helper.rb', line 2

def spina_importmap_tags(entry_point = "application")
  safe_join [
    javascript_inline_importmap_tag(Spina.config.importmap.to_json(resolver: self)),
    javascript_importmap_module_preload_tags(Spina.config.importmap),
    javascript_import_module_tag(entry_point)
  ], "\n"
end