Search Docs
针对于文本类型文件,增加 Handlebars 的自定义 Partial 片段,具体可查看文档Partials。
该方法可在 onForged 生命周期的 api 参数上获取。
onForged
其类型定义为:
export type ForgedAPI = { addPartial: (name: string, str: Handlebars.Template) => void; ... };
partial 名称。
partial 模板字符串。