elemH

Create a HTML element. This template wraps elemX, implementing support for HTML void tags.

Examples for this module elemi.html cover its most important features.

template elemH(string name, Ts...)
Element
elemH
(
Args...
)
(
Args args
)

Members

Functions

elemH
Element elemH(Args args)
Undocumented in source. Be warned that the author may not have intended to support it.

Parameters

name

Name of the element.

Ts

Compile-time arguments to pass to elemX. Discouraged.

args

Arguments to pass to elemX. Mix and match any from this list:

  • Pass an Element created by this function to add as a child.
  • Any Attribute given will be added to the element's attribute list.
  • Text content can be specified with a string.

Return Value

An Element instance, which can implicitly be casted to string.

Meta