State container for registered assets and their metadata.
Summary
Functions
Fetches a registered asset.
Registers an image into the registry.
Source can be {:binary, binary()} or {:path, Path.t()}.
Types
@type t() :: %Rendro.AssetRegistry{ assets: %{ optional(atom()) => %{ binary: binary(), width: pos_integer(), height: pos_integer(), mime: String.t() } } }
Functions
Fetches a registered asset.
@spec new() :: t()
Registers an image into the registry.
Source can be {:binary, binary()} or {:path, Path.t()}.