build/src/index.js
function html(template) {
    var expressions = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        expressions[_i - 1] = arguments[_i];
    }
    var result = "";
    var i = 0;
    // resolve each expression and build the result string
    for (var _a = 0, template_1 = template; _a < template_1.length; _a++) {
        var part = template_1[_a];
        var expression = expressions[i++ - 1]; // this might be an array
        var resolvedExpression = resolveExpression(expression);
        result += "" + resolvedExpression + part;
    }
    // strip indentation and trim the result
    return strip_indent_1.default(result).trim();
}
function html(template) {
    var expressions = [];
    for (var _i = 1; _i < arguments.length; _i++) {
        expressions[_i - 1] = arguments[_i];
    }
    var result = "";
    var i = 0;
    // resolve each expression and build the result string
    for (var _a = 0, template_1 = template; _a < template_1.length; _a++) {
        var part = template_1[_a];
        var expression = expressions[i++ - 1]; // this might be an array
        var resolvedExpression = resolveExpression(expression);
        result += "" + resolvedExpression + part;
    }
    // strip indentation and trim the result
    return strip_indent_1.default(result).trim();
}
function html ( template ) { var expressions = [ ] ; for ( var _i = 1 ; _i < arguments . length ; _i ++ ) { expressions [ _i - 1 ] = arguments [ _i ] ; } var result = "" ; var i = 0 ; // resolve each expression and build the result string for ( var _a = 0 , template_1 = template ; _a < template_1 . length ; _a ++ ) { var part = template_1 [ _a ] ; var expression = expressions [ i ++ - 1 ] ; // this might be an array var resolvedExpression = resolveExpression ( expression ) ; result += "" + resolvedExpression + part ; } // strip indentation and trim the result return strip_indent_1 . default ( result ) . trim ( ) ; }
html tag function, accepts simple values, arrays, promises
html tag function accepts simple values arrays promises