[][src]Module vial::asset

Functions

as_reader
etag

etag for an asset

exists

Does the asset exist on disk? path is the relative path, ex: asset::exists("index.html") checks for "./static/index.html" (or in the embedded fs, in release mode).

is_bundled

Have assets been bundled into the binary?

iter
normalize_path
read

Read a file to u8.

to_string

Like fs::read_to_string(), but with an asset.