[][src]Module deadwiki::asset

Web-related file in static/

Structs

Asset

Functions

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).

to_string

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