Function sitewriter::generate

source ·
pub fn generate<T>(inner_writer: T, urls: &[UrlEntry]) -> Result<T>where
    T: Write,
Expand description

Generates the sitemap and saves it using the provided writer.

It’s recommended to use generate_bytes or generate_str if you need a String or a Vec.

Errors

Will return Err if it fails to write to the writer.