Element

Represents a HTML element.

Use elem to generate.

Constructors

this
this(string name, string attributes, string content)
Undocumented in source.

Alias This

toString

Members

Functions

add
Element add(T content)
Element add(string[string] attributes, T content)

Create a new element as a child

add
Element add(Element element)

Add an element as a child

add
Element add(string text)

Add text as a child.

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Manifest constants

HTMLDoctype
enum HTMLDoctype;

Doctype info for HTML.

MobileViewport
enum MobileViewport;

A common head element for adjusting the viewport to mobile devices.

Variables

html
string html;

HTML of the element.

postHTML
string postHTML;

Added at the end

Meta