Jaml.Node.getRoots  function     

Returns all top-level (root) nodes in this template tree. Templates are tree structures, but there is no guarantee that there is a single root node (e.g. a single DOM element that all other elements nest within)

Jaml.Node.getRoots() -> Array
{Array}

The array of root nodes

© Jupiter IT - JavaScriptMVC Training and Support