Info
This post is auto-generated from RSS feed The Rust Programming Language Forum - Latest topics. Source: Prejsx - JSX-style HTML transpiler for Rust
I just published prejsx
, a simple JSX-to-html transpiler for Rust. it supports evaluating basic math expressions with prejsx_math
.
use prejsx::render;
fn main() {
let input = r#"<h1 className="title" style={{color: "blue"}}>Hello {2 * 2}!</h1>"#;
let html = render(input);
println!("{}", html);
}
1 post - 1 participant
🏷️ Rust_feed