Skip to main content

Module prelude

Module prelude 

Source
Expand description

Rendering prelude for convenient imports.

This module re-exports the most commonly used types for rendering, allowing you to import everything you need in one line:

use standout_render::rendering::prelude::*;

let theme = Theme::new()
    .add("title", Style::new().bold());

let output = render(
    "[title]{{ name }}[/title]",
    &data,
    &theme,
)?;