Limen.Challenge.Assets (limen v0.2.1)

Copy Markdown View Source

The challenge page's script, worker and stylesheet.

They are read from priv/static at compile time and served from memory. URLs carry a content hash, so the files can be cached for a year.

Summary

Functions

Serves asset name, or 404 if there is no such asset.

The URL of asset name under the challenge base path.

Functions

serve(conn, name)

@spec serve(Plug.Conn.t(), String.t()) :: Plug.Conn.t()

Serves asset name, or 404 if there is no such asset.

url(base, name)

@spec url(String.t(), String.t()) :: String.t()

The URL of asset name under the challenge base path.