markerml_backend 0.1.2

HTML backend of simple markup and templating language, that is transpiled to HTML.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
//! This is a crate that provides HTML generation
//! backend for the MarkerML language.
//!
//! For the full grammar overview,
//! refer to the [`markerml`](https://crates.io/crates/markerml) crate.

pub mod error;
pub mod html_generator;

pub use error::BackendError;

use markerml_middleend::Span;

/// Generates HTML from the given IR
pub fn generate_html(ir: markerml_middleend::ir::Module<Span>) -> Result<String, BackendError> {
    html_generator::HtmlGenerator::new(ir).generate()
}