Tag.attr

Add an attribute to the element.

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

Parameters

name string

Name of the attribute.

value Ts

Value for the attribute. Supports istrings.

Return Value

Type: Tag

Tag builder.

Meta