* Add a template type to the extension currently being registered. This is a * restricted method and it's allowed to be called only during the overall * extension registration. * @param {string} name * @param {typeof ../base-template.BaseTemplate} implementationClass * @restricted
(name, implementationClass)
| 350 | * @restricted |
| 351 | */ |
| 352 | addTemplate(name, implementationClass) { |
| 353 | this.addDocFactory((ampdoc) => { |
| 354 | registerExtendedTemplateForDoc(ampdoc, name, implementationClass); |
| 355 | }); |
| 356 | } |
| 357 | |
| 358 | /** |
| 359 | * Installs the specified element implementation in the ampdoc. |
no test coverage detected