5 releases
0.1.2 | Jun 21, 2020 |
---|---|
0.1.1 | Jun 21, 2020 |
0.1.0 | Jun 20, 2020 |
0.0.2 | Jun 18, 2020 |
0.0.1 | Jun 18, 2020 |
#79 in #templating
27 downloads per month
Used in rdxl_scaffolding
12KB
344 lines
mxml: Mixin Markup Language
like regular expressions, but for XML
mixin!(Tooltip(message),
<? +"data-toggle"="tooltip" +"data-placement"="top" +title={{message}}/>
);
fn main() {
println!("{}", Tooltip("hey!").mixin(
r#"<button type="button" class="btn btn-secondary">tooltip will be mixed in</button>"#
));
}
This library is intended for small XML snippets, not large performance sensitive XML processing.
Contributions
Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in mxml by you, shall be dual licensed under the MIT and Apache 2.0 license without any additional terms or conditions.
Dependencies
~5MB
~96K SLoC