Crates.io | mox-impl |
lib.rs | mox-impl |
version | 0.11.0 |
source | src |
created_at | 2020-07-06 19:56:00.93591 |
updated_at | 2021-01-10 20:47:49.199744 |
description | Implementation for the mox! macro. |
homepage | https://moxie.rs |
repository | https://github.com/anp/moxie.git |
max_upload_size | |
id | 262071 |
size | 11,500 |
mox implements the mox!
macro: "a Mockery Of X(ML)". A JSX-like Rust DSL for calling builders.
"Attribute init shorthand" allows pulling an attribute from an identically-named binding in the local scope:
let onclick = |_| { ... };
mox!(<button onclick>"click me?"</button>)
Module-nested tag names: mox!(<krate::module::tag>"foo"</krate::module::tag>)
.
Attributes support single-expression values without braces: <button disabled=true/>
.
XML comments: mox!(<div> <!-- COMMENT HERE --> </div>)
.
mox!
invocations are now lexed by the syn-rsx crate..into_child()
appended to them._=(...)
style function invocation in tags.mox-impl
crate to allow publication separately from moxie
.topo::call(...)
.This version was a complete rewrite in tandem with moxie
v0.2.0.
Initial release.