mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* 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
24 lines
627 B
Rust
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 };
|
|
}
|