rocal-ui 0.1.3

UI for Rocal - Full-Stack WASM framework
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#![doc = include_str!("../README.md")]

pub mod data_types;
pub mod enums;
pub mod html;

use html::to_tokens::ToTokens;
use proc_macro2::TokenStream;

pub fn build_ui(item: TokenStream) -> TokenStream {
    match html::parse(item.into()) {
        Ok(html) => html.to_token_stream().into(),
        Err(err) => err.into_compile_error().into(),
    }
}