Crates.io | yew-html-ext |
lib.rs | yew-html-ext |
version | 0.1.3 |
source | src |
created_at | 2024-02-14 12:18:47.723762 |
updated_at | 2024-02-26 09:47:15.472211 |
description | Handy syntactic extensions for Yew's HTML macros |
homepage | |
repository | https://github.com/schvv31n/yew-html-ext |
max_upload_size | |
id | 1139824 |
size | 272,436 |
yew-html-ext
provides a drop-in replacement for Yew's html!
and html_nested!
macros with
a number of syntactic extensions. Being a drop-in replacement, all one has to do to start benefitting from this library is:
[dependencies]
yew-html-ext = "0.1"
yew::html{_nested}
with yew_html_ext::html{_nested}
The provided macros facilitate an experimental ground for potential additions to Yew HTML proper, which is why the base features are untouched, only new ones are added.
yew-fmt
has support for this extended syntax,
which is however opt-in and is to be enabled by adding the following line to rustfmt.toml
:
yew.html_flavor = "Ext"