mysig/asset

Types

pub type Asset {
  Asset(name: String, bytes: BitArray, ext: MediaType)
}

Constructors

  • Asset(name: String, bytes: BitArray, ext: MediaType)
pub type Bundle {
  Bundle(
    root: String,
    store: ref.MutableReference(dict.Dict(String, BitArray)),
  )
}

Constructors

  • Bundle(
      root: String,
      store: ref.MutableReference(dict.Dict(String, BitArray)),
    )
pub type MediaType {
  Js
  Css
}

Constructors

  • Js
  • Css

Constants

pub const tailwind_2_2_11: String

Functions

pub fn css(name: String, content: String) -> Asset
pub fn js(name: String, content: String) -> Asset
pub fn new_bundle(root: String) -> Bundle
pub fn resource(
  asset: Asset,
  bundle: Bundle,
) -> Effect(Element(a))
pub fn to_files(bundle: Bundle) -> List(#(String, BitArray))
Search Document