Module resource

Source
Expand description

Resources for subplot.

This module encapsulates a mechanism for subplot to find resource files. Resource files come from a number of locations, such as embedded into the binary, from template paths given on the CLI, or from paths built into the binary and present on disk.

Structs§

ResourceOpts

Functions§

add_search_path
Put a path at the back of the queue to search in
embedded_files
Retrieve the embedded file list
read_as_string
Read a file, honouring search paths established during startup, and falling back to potentially embedded file content