code: function noMoreTemplates() {
          registryComplete = true;
          // Reject all unresolved promises
          Object.keys(registry).forEach(function(templateName) {
              registry[templateName].reject(noSuchTemplate(templateName));
          });
          theOnlyTemplate.reject(noSuchTemplate('<default>'));
      }
docs: Indicate that there will be no more incoming templates