Rusty Domain Extensible Language

Crates.IO Documentation Build Nightly Build

Domain specific language macros for Rust to generate xhtml. (pronounced "Rad Axle")

```rust let myint = 3; let mystr = "asdf"; let my_vec = vec![true, false, true, true];

println!("{}",xhtml!(

)); ```

Modularized templating is encouraged through custom XML elements that implement the Display property. Foreign xhtml snippets or miscellaneous content can be inserted inline as long as it also implements the Display property.

```rust xtype!(string:String myint:u64> bool:bool/> char:char/> );

xrender!(MyList,

); ```

Foreign syntaxes, like Javascript, may be quoted inline or inserted as CDATA.

rust xrender!(BarGraph, <script src="https://d3js.org/d3.v4.min.js"></script> <script> r#"var margin = {top: 20, right: 20, bottom: 30, left: 40}, width = 960 - margin.left - margin.right, height = 500 - margin.top - margin.bottom;"# ... </script> );

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in rdxl by you, shall be dual licensed under the MIT and Apache 2.0 license without any additional terms or conditions.