Skip to content

Releases: jcornaz/fun-html

v1.8.0

25 Jan 15:52
Compare
Choose a tag to compare

Added

  • salvo_v076 feature flag providing implementation of salvo::Scribe for Document and Element

v1.7.0

25 Jan 15:10
Compare
Choose a tag to compare

Added

  • maud_v026 feature flag providing implementation of maud::Render for Document and Element,
    as well as conversion from/to maud's Markup type.

v1.6.0

21 Dec 17:52
Compare
Choose a tag to compare

Added elements

  • elt::hgroup
  • elt::hr
  • elt::legend

Added attributes

  • attr::style
  • attr::minlength_u16
  • attr::maxlength_u16
  • attr::role

Documentation

  • Root crate example slightly improved

v1.5.0

16 Dec 19:57
Compare
Choose a tag to compare

Deprecated

  • attr::charset_utf_8() and elt::meta_charset_utf_8()
    (renamed to attr::charset_utf8() and elt::meta_charset_utf8())

Added

  • implement Default for Element and Attribute
  • attr::none() for conditional rendering of an attribute
  • attr::disabled() and attr::autofocus()
  • attr::charset_utf8() and elt::meta_charset_utf8()
  • attr::autocomplete(type_: impl Into<Cow<'static, str>>), attr::autocomplete_on(), attr::autocomplete_off()

v1.4.0

13 Dec 22:17
Compare
Choose a tag to compare

Added

  • salvo_v074 feature flag providing implementation of salvo::Scribe for Document and Element

v1.3.0

05 Nov 12:18
Compare
Choose a tag to compare

Added

  • meta_charset_utf_8, meta_color_scheme and link_stylesheet

v1.2.1

05 Nov 08:08
Compare
Choose a tag to compare

Documentation

Minor fix in root crate documentation

v1.2.0

03 Nov 20:28
Compare
Choose a tag to compare

Added

  • Attribute::new_unsafe_name escape hatch to allow using an attribute name generated at runtime.

v1.1.0

03 Nov 16:22
Compare
Choose a tag to compare

Added

  • textarea and related attributes (cols and rows)
  • width_int and height_int which takes an i32 value instead of a string

v1.0.0

03 Nov 09:40
Compare
Choose a tag to compare

Added

  • Element, Attribute and Document types
  • html 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 and body)
    • Meta (meta, meta_viewport, link, script, title) and related attributes
      (charset, content, rel, async, defer, integrity, type, src, and crossorigin)
    • Text (h1 to h6, p, span, small, br and text)
    • Container (div, article, section, header, main, footer)
    • Table (table, thead, tbody, tfoot, tr, th, td)
    • Anchor (a) and related attributes (href, target and download)
    • Image (img) and related attributes (src, alt, width and height)
    • Lists (ul, ol and li)
    • Forms (form, fieldset, input, label, select, option) and related attributes
      (action, method, placeholder, for, value, min, max, minlength, maxlength, multiple, type_*)
    • Escape hatches (raw and raw_unsafe)
  • implement From<(&'static str, Cow<'static, str)> for Attribute
  • implement From<&'static str> and From<String> for Element
  • implement From<[Element; N]> and From<Vec<Element>> for Element (group elements without wrapping them in a div)
  • Feature flags
    • std: Enabled by default. Disable it to compile to no_std
    • rocket_v05 : implement rocket::response::Responder for Document and Element (for rocket 0.5)