API Reference > @next-core/brick-kit > AbstractRuntime > registerCustomTemplate
AbstractRuntime.registerCustomTemplate() method
注册一个自定义模板。
Signature:
registerCustomTemplate(tplName: string, tplConstructor: CustomTemplateConstructor, appId?: string): void;
Parameters
| Parameter | Type | Description |
|---|---|---|
| tplName | string | 模板名。 |
| tplConstructor | CustomTemplateConstructor | 模板构造器。 |
| appId | string | 模板所属应用的 ID。 |
Returns:
void