All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog.
1.6.0 - 2024-12-21
elt::hgroup
elt::hr
elt::legend
attr::style
attr::minlength_u16
attr::maxlength_u16
attr::role
- Root crate example slightly improved
1.5.0 - 2024-12-16
attr::charset_utf_8()
andelt::meta_charset_utf_8()
(renamed toattr::charset_utf8()
andelt::meta_charset_utf8()
)
- implement
Default
forElement
andAttribute
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()
1.4.0 - 2024-12-13
salvo_v074
feature flag providing implementation ofsalvo::Scribe
forDocument
andElement
1.3.0 - 2024-11-05
meta_charset_utf_8
,meta_color_scheme
andlink_stylesheet
1.2.1 - 2024-11-05
Minor fix in root crate documentation
1.2.0 - 2024-11-03
Attribute::new_unsafe_name
escape hatch to allow using an attribute name generated at runtime.
1.1.0 - 2024-11-03
textarea
and related attributes (cols
androws
)width_int
andheight_int
which takes ani32
value instead of a string
1.0.0 - 2024-11-03
Element
,Attribute
andDocument
typeshtml
function to create an html document- Attribute values and text elements are escaped for HTML
- Attributes
lang
id
class
name
src
- Elements
- Html document (
html
,head
andbody
) - Meta (
meta
,meta_viewport
,link
,script
,title
) and related attributes (charset
,content
,rel
,async
,defer
,integrity
,type
,src
, andcrossorigin
) - Text (
h1
toh6
,p
,span
,small
,br
andtext
) - Container (
div
,article
,section
,header
,main
,footer
) - Table (
table
,thead
,tbody
,tfoot
,tr
,th
,td
) - Anchor (
a
) and related attributes (href
,target
anddownload
) - Image (
img
) and related attributes (src
,alt
,width
andheight
) - Lists (
ul
,ol
andli
) - Forms (
form
,fieldset
,input
,label
,select
,option
) and related attributes (action
,method
,placeholder
,for
,value
,min
,max
,minlength
,maxlength
,multiple
,type_*
) - Escape hatches (
raw
andraw_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_std
rocket_v05
: implementrocket::response::Responder
forDocument
andElement
(for rocket 0.5)