# yew-alt-html [![crates.io](https://img.shields.io/crates/v/yew-alt-html)](https://crates.io/crates/yew-alt-html) [![download](https://img.shields.io/crates/d/yew-alt-html)](https://crates.io/crates/yew-alt-html) [![docs.rs](https://docs.rs/yew-alt-html/badge.svg)](https://docs.rs/yew-alt-html) Alternative macro for building `Html` in [Yew](https://yew.rs/). ## Example This example represents the root `App` component of a Yew application. It shows interpolation in text nodes, interpolation in attributes, multiple nodes in the root of the macro, shortened tag closing, using tags in match expressions. ```rust use yew::prelude::*; use yew_alt_html::ah; enum LoadState { Loading, Failed, Loaded, } #[function_component] pub fn App() -> Html { let name = "Yew"; let italic_style = "font-style: italic"; use LoadState::*; let state = Loaded; let items = vec![1, 2, 3]; ah! {

"Hello " name "!" match state { Loading => "Loading...", Failed => "Load failed!", Loaded =>

"Welcome to ""yew-alt-html""!", }