Function generate_deck

Source
pub fn generate_deck(
    in_path: &Path,
    out_path: &Path,
    template: &str,
    title: &str,
) -> Result<()>
Expand description

Processes a markdown file into an HTML document, using the given template.

The template should contain the string $TITLE, which is the title of the chapter, and $CONTENT which will be the Markdown slide contents. We assume your template has an integrated Markdown-to-HTML convertor, like reveal.js does.