Function dokkoo::render[][src]

pub fn render(
    page: &Page,
    text_to_render: &str,
    only_context: bool,
    collections: &HashMap<String, Vec<Page>>
) -> String

Returns a String with a &str’s File rendered

Arguments

  • page - A .mokkf file’s context as a Page

  • text_to_render - The text to be rendered

  • only_context - Whether or not to only render the contexts of a File

  • collections - Collection store of this build