mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-26 22:20:19 +00:00
828cc502f1
* add new autofmt sample * Feat: implement rustfmt::skip support for rsx * generally improve error handling with better expect messages * wip: nested rsx formatting and expression formatting * nested rsx formatting works * collapse autofmt crate * cast indent through macros * use proper whitespace * no more eating comments! * Use proper error handling
17 lines
334 B
R
17 lines
334 B
R
rsx! {
|
|
// Raw text strings
|
|
button {
|
|
r#"Click me"#
|
|
r##"Click me"##
|
|
r######"Click me"######
|
|
r#"dynamic {1}"#
|
|
}
|
|
|
|
// Raw attribute strings
|
|
div {
|
|
width: r#"10px"#,
|
|
height: r##"{10}px"##,
|
|
"raw-attr": r###"raw-attr"###,
|
|
"raw-attr2": r###"{100}"###,
|
|
}
|
|
}
|