Simon 37401402a1
Allow the use of Rust keywords for element names (#1772)
* time for more hygiene

* update corresponding tests

* while I'm at it

* now let's fix the actual issue

* fix the publish examples CI while I'm at it

* resolve clippy warnings
2021-02-28 15:49:58 +01:00

24 lines
627 B
Rust

#![no_implicit_prelude]
fn main() {
::yew::html! { "" };
::yew::html! { 'a' };
::yew::html! { "hello" };
::yew::html! { 42 };
::yew::html! { 1.234 };
::yew::html! { true };
::yew::html! { <span>{ "" }</span> };
::yew::html! { <span>{ 'a' }</span> };
::yew::html! { <span>{ "hello" }</span> };
::yew::html! { <span>{ 42 }</span> };
::yew::html! { <span>{ 1.234 }</span> };
::yew::html! { <span>{ true }</span> };
::yew::html! { ::std::format!("Hello") };
::yew::html! { ::std::string::ToString::to_string("Hello") };
let msg = "Hello";
::yew::html! { msg };
}