DocShell.Presentation.Asset (DocShell v0.5.0)

Copy Markdown View Source

Describes one local asset produced by a renderer or search adapter.

path is a logical relative name, not a destination chosen by the renderer. The static exporter rejects traversal and duplicates, hashes bytes, and maps that name to the final public URL. This keeps renderers independent of the output directory and prevents them from writing files themselves.

Summary

Types

t()

A finite static asset returned by a renderer.

Types

t()

@type t() :: %DocShell.Presentation.Asset{
  bytes: binary(),
  media_type: String.t(),
  path: String.t()
}

A finite static asset returned by a renderer.