Function sharp_pencil::helpers::send_from_directory
source · [−]pub fn send_from_directory(
directory: &str,
filename: &str,
as_attachment: bool
) -> PencilResult
Expand description
Send a file from a given directory with send_file
. This is a secure way to
quickly expose static files from an folder. This will guess the mimetype
for you.