index.js
/**
     * Returns a string of HTML used to create a <template> element.
     */
Returns a string of HTML used to create a 
Returns a string of HTML used to create a
_getHtml(strings, svg) {
      const l = strings.length;
      const a = [];
      let isTextBinding = false;
      for (let i = 0; i < l - 1; i++) {
        const s = strings[i];
        a.push(s);
        isTextBinding = s.match(textRegex) !== null || s.match(hasTagsRegex) !== null && isTextBinding;
        a.push(isTextBinding ? textMarker : attributeMarker);
      }
      a.push(strings[l - 1]);
      const html = a.join('');
      return svg ? `<svg>${html}</svg>` : html;
    }
_getHtml ( strings , svg ) { const l = strings . length ; const a = [ ] ; let isTextBinding = false ; for ( let i = 0 ; i < l - 1 ; i ++ ) { const s = strings [ i ] ; a . push ( s ) ; isTextBinding = s . match ( textRegex ) !== null || s . match ( hasTagsRegex ) !== null && isTextBinding ; a . push ( isTextBinding ? textMarker : attributeMarker ) ; } a . push ( strings [ l - 1 ] ) ; const html = a . join ( '' ) ; return svg ? ` ${ html } ` : html ; }
Returns a string of HTML used to create a <template> element.
Returns a string of HTML used to create a <template > element .
// We're in a text position if the previous string matches the // textRegex. If it doesn't and the previous string has no tags, then // we use the previous text position state.