TemplateHTMLElement

  1. class TemplateHTMLElement(Element, string form)
    abstract
    class TemplateHTMLElement : Element(
    Element
    string form
    ) if (
    is(Element : HTMLElement)
    ) {}
  2. alias TemplateHTMLElement(string form) = TemplateHTMLElement!(HTMLElement, form)

Constructors

this
this(T args)
Undocumented in source.

Members

Properties

exts
inout(Variant[string]) exts [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
html
string html [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

class MyButton : TemplateHTMLElement!(HTMLElement,
    q{<input type="button" id="%[id%]" value="Click me!">})
{
    this(string id)
    {
        super(id, null, false);
    }
}

auto btn1 = new MyButton("btn1");
assert(btn1.html == q{<input type="button" id="btn1" value="Click me!">});

Meta