Methods
(static) dom(s, dataopt) → {Document}
Parses the given XML string or a function and returns a DOM
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
s |
String
|
function
|
The template function or the string | |
data |
Object
|
<optional> |
The data that will be applied to the function |
Returns:
- Type:
-
Document
A new Document