Tag.attr

Add an attribute to the element.

  1. Tag attr(string name, string value)
    struct Tag
    @safe
    attr
    (
    string name
    ,
    string value
    )
  2. Tag attr(string name, InterpolationHeader , Ts value)
  3. Tag attr(Attribute[] attributes)

Parameters

name string

Name of the attribute.

value string

Value for the attribute. Supports istrings.

Return Value

Type: Tag

Tag builder.

Meta