class Importmap::Map

Defined in:

importmap/map.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

def self.new(json : Importmap::Json) #

[View source]

Class Method Detail

def self.draw(& : Map -> ) #

[View source]
def self.from_json(s : String, & : Map -> ) #

[View source]
def self.from_json(s : String) #

[View source]

Instance Method Detail

def import_opts : Hash(String, Importmap::Opts) #

[View source]
def import_opts=(import_opts : Hash(String, Importmap::Opts)) #

[View source]
def json : Json #

[View source]
def json=(json : Json) #

[View source]
def pin(name, to : String | Nil = nil, preload = false) : Nil #

[View source]
def preload(name) : Nil #

[View source]
def scope(path, hash) : Nil #

[View source]
def to_importmap_html_tags(preloads = false) #

[View source]
def to_importmap_json #

[View source]