| Crates.io | mox |
| lib.rs | mox |
| version | 0.12.0 |
| created_at | 2018-11-10 03:30:17.287987+00 |
| updated_at | 2021-02-02 01:32:19.870807+00 |
| description | Mockery Of X(ML): a JSX-alike syntax for the builder pattern. |
| homepage | https://moxie.rs |
| repository | https://github.com/anp/moxie.git |
| max_upload_size | |
| id | 95761 |
| size | 18,974 |
mox implements the mox! macro: "a Mockery Of X(ML)". A JSX-like Rust DSL for calling builders.
mox-impl is no longer being published and its contents are included directly in this crate.topo."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.