AccrueAdmin.Assets (accrue_admin v0.3.1)

Copy Markdown View Source

Serves the committed admin CSS and JS bundles from package-owned routes.

Summary

Types

kind()

@type kind() :: :brand | :css | :js

Functions

asset(atom)

@spec asset(kind()) :: {binary(), binary(), String.t()}

brand_hash()

@spec brand_hash() :: String.t()

call(conn, kind)

@spec call(Plug.Conn.t(), kind()) :: Plug.Conn.t()

Callback implementation for Plug.call/2.

css_hash()

@spec css_hash() :: String.t()

hashed_path(kind)

@spec hashed_path(kind()) :: String.t()

hashed_path(kind, mount_path)

@spec hashed_path(kind(), String.t()) :: String.t()

init(kind)

@spec init(kind()) :: kind()

Callback implementation for Plug.init/1.

js_hash()

@spec js_hash() :: String.t()

normalize_mount_path(path)

@spec normalize_mount_path(String.t()) :: String.t()