Function tag

Source
pub fn tag<'t, A: Attributes, I: Html>(
    tag: &'t str,
    attributes: A,
    inner_html: I,
    compactability: Compactability,
) -> Tag<'t, A, I, false>
Expand description

Creates a new custom tag.

See Tag for more information.

ยงArguments

  • tag - The name of the tag.
  • attributes - The attributes of the tag.
  • inner_html - The inner HTML of the tag.
  • compactability - Whether the tag can be compacted.