markupwright 0.1.3

Template-driven workspace documentation generator
Documentation
macro_rules! embedded_templates {
    ($($name:literal),+ $(,)?) => {
        &[$(EmbeddedTemplate {
            name: $name,
            source: include_str!(concat!("../../../templates/", $name)),
        }),+]
    };
}

#[derive(Clone, Copy, Debug)]
pub(super) struct EmbeddedTemplate {
    pub(super) name: &'static str,
    pub(super) source: &'static str,
}

pub(super) const EMBEDDED_TEMPLATES: &[EmbeddedTemplate] = embedded_templates!(
    "document.md.j2",
    "header.md.j2",
    "instructions-base.md.j2",
    "instructions-layout.md.j2",
    "instructions-cargo.md.j2",
    "instructions-directory.md.j2",
    "instructions-language.md.j2",
    "instructions-node.md.j2",
    "instructions-root.md.j2",
    "readme-base.md.j2",
    "readme-layout.md.j2",
    "readme-cargo.md.j2",
    "readme-directory.md.j2",
    "readme-language.md.j2",
    "readme-node.md.j2",
    "readme-root.md.j2",
);