Search Docs
针对于文本类型文件,增加 Handlebars 的自定义 Help 函数,具体可查看文档Custom Helpers。
该方法可在 onForged 生命周期的 api 参数上获取。
onForged
其类型定义为:
export type ForgedAPI = { addHelper: (name: string, fn: Handlebars.HelperDelegate) => void; ... };
help 函数名称。
help 函数实现。