Function webbby::build

source ·
pub fn build(f: File, c: &str)
Expand description

Build your site!

Takes a file and the HTML of your page

Example:

use webbby::build;
use std::fs::File;

fn main() -> std::io::Result<()> {
    let content = "<h1>Hello, World!</h1>
    <p>Hyd Today?</p>";
    let out = File::create("foo.txt")?;
    build(out, content);
    Ok(())
}