build/wick.node.js
function CompileSource(SourcePackage, presets, element, url, win = window) {
    let lex;
    if (element instanceof whind$1.constructor) {
        lex = element;
    } else if (typeof(element) == "string")
        lex = whind$1(element);
    else if (element instanceof EL) {
        if (element.tagName == "TEMPLATE") {
            let temp = document.createElement("div");
            temp.appendChild(element.content);
            element = temp;
        }
        lex = whind$1(element.innerHTML);
    } else {
        let e = new Error("Cannot compile component");
        SourcePackage._addError_(e);
        SourcePackage._complete_();
    }
    return parseText(lex, SourcePackage, presets, url, win);
}
function CompileSource(SourcePackage, presets, element, url, win = window) {
    let lex;
    if (element instanceof whind$1.constructor) {
        lex = element;
    } else if (typeof(element) == "string")
        lex = whind$1(element);
    else if (element instanceof EL) {
        if (element.tagName == "TEMPLATE") {
            let temp = document.createElement("div");
            temp.appendChild(element.content);
            element = temp;
        }
        lex = whind$1(element.innerHTML);
    } else {
        let e = new Error("Cannot compile component");
        SourcePackage._addError_(e);
        SourcePackage._complete_();
    }
    return parseText(lex, SourcePackage, presets, url, win);
}
function CompileSource ( SourcePackage , presets , element , url , win = window ) { let lex ; if ( element instanceof whind$1 . constructor ) { lex = element ; } else if ( typeof ( element ) == "string" ) lex = whind$1 ( element ) ; else if ( element instanceof EL ) { if ( element . tagName == "TEMPLATE" ) { let temp = document . createElement ( "div" ) ; temp . appendChild ( element . content ) ; element = temp ; } lex = whind$1 ( element . innerHTML ) ; } else { let e = new Error ( "Cannot compile component" ) ; SourcePackage . _addError_ ( e ) ; SourcePackage . _complete_ ( ) ; } return parseText ( lex , SourcePackage , presets , url , win ) ; }
Compiles an object graph based input into a SourcePackage.
@param      {SourcePackage}  SourcePackage     The source package
@param      {Presets}  presets           The global Presets instance
@param      {HTMLElement | Lexer | string}  element     The element
@memberof module:wick~internals.templateCompiler
@alias CompileSource
Compiles an object graph based input into a SourcePackage .