howdy/static_resource
Helper functions to handle static content on the disk
Functions
pub fn get_file_contents(file_path: String) -> fn(Context(a)) ->
Response(BitBuilder)
Searchs the file path for matching files from a wildcard segment
pub fn get_spa_file_contents(file_path: String, default_file: String) -> fn(
Context(a),
) -> Response(BitBuilder)
Matches a single file to a route, allowing the server to serve Single Page Applications