Releases: jcornaz/fun-html
Releases · jcornaz/fun-html
v1.8.0
v1.7.0
Added
maud_v026feature flag providing implementation ofmaud::RenderforDocumentandElement,
as well as conversion from/to maud'sMarkuptype.
v1.6.0
Added elements
elt::hgroupelt::hrelt::legend
Added attributes
attr::styleattr::minlength_u16attr::maxlength_u16attr::role
Documentation
- Root crate example slightly improved
v1.5.0
Deprecated
attr::charset_utf_8()andelt::meta_charset_utf_8()
(renamed toattr::charset_utf8()andelt::meta_charset_utf8())
Added
- implement
DefaultforElementandAttribute attr::none()for conditional rendering of an attributeattr::disabled()andattr::autofocus()attr::charset_utf8()andelt::meta_charset_utf8()attr::autocomplete(type_: impl Into<Cow<'static, str>>),attr::autocomplete_on(),attr::autocomplete_off()
v1.4.0
Added
salvo_v074feature flag providing implementation ofsalvo::ScribeforDocumentandElement
v1.3.0
Added
meta_charset_utf_8,meta_color_schemeandlink_stylesheet
v1.2.1
Documentation
Minor fix in root crate documentation
v1.2.0
Added
Attribute::new_unsafe_nameescape hatch to allow using an attribute name generated at runtime.
v1.1.0
Added
textareaand related attributes (colsandrows)width_intandheight_intwhich takes ani32value instead of a string
v1.0.0
Added
Element,AttributeandDocumenttypeshtmlfunction to create an html document- Attribute values and text elements are escaped for HTML
- Attributes
langidclassnamesrc
- Elements
- Html document (
html,headandbody) - Meta (
meta,meta_viewport,link,script,title) and related attributes
(charset,content,rel,async,defer,integrity,type,src, andcrossorigin) - Text (
h1toh6,p,span,small,brandtext) - Container (
div,article,section,header,main,footer) - Table (
table,thead,tbody,tfoot,tr,th,td) - Anchor (
a) and related attributes (href,targetanddownload) - Image (
img) and related attributes (src,alt,widthandheight) - Lists (
ul,olandli) - Forms (
form,fieldset,input,label,select,option) and related attributes
(action,method,placeholder,for,value,min,max,minlength,maxlength,multiple,type_*) - Escape hatches (
rawandraw_unsafe)
- Html document (
- implement
From<(&'static str, Cow<'static, str)>forAttribute - implement
From<&'static str>andFrom<String>forElement - implement
From<[Element; N]>andFrom<Vec<Element>>forElement(group elements without wrapping them in adiv) - Feature flags
std: Enabled by default. Disable it to compile tono_stdrocket_v05: implementrocket::response::ResponderforDocumentandElement(for rocket 0.5)