gen-html-proc 0.4.0

Generate HTML using Rust
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
use syn::parse_macro_input;

mod ast;
mod error;
mod generate;
mod parse;
mod tags;

#[proc_macro]
pub fn html(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
    let template = parse_macro_input!(input as ast::Template);
    template.expand().into()
}