parser

A minimalistic parsing wrapper library using the native DOMParser
Author:
Source:

Methods

(static) dom(s, dataopt) → {Document}

Parses the given XML string or a function and returns a DOM
Source:
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