[][src]Function sharp_pencil::helpers::send_from_directory

pub fn send_from_directory(
    directory: &str,
    filename: &str,
    as_attachment: bool
) -> PencilResult

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.