code: function insertTemplatesAsScriptTags(indexHtml, demo) {
        if (demo.files.html.length) {
          var tmp = angular.element(indexHtml);
          angular.forEach(demo.files.html, function(template) {
            tmp.append("<script type='text/ng-template' id='" +
                       template.name + "'>" +
                       template.contents +
                       "</script>");
          });
          return tmp[0].outerHTML;
        }
        return indexHtml;
      }
docs: Adds templates inline in the html, so that templates are cached in the example