[san-cli]二次开发脚手架开发支持自定义handlerbars 的Partial #573
hello-sunbaixin
started this conversation in
San CLI
Replies: 2 comments
-
嗯,实现成本不高: 在脚手架模板的meta.js中添加partial配置项, 你有兴趣来提个pr么,哈哈 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
希望meta里支持自定义 handlerbars 的代码块 Partial,支持定义代码块片段
例如这样
aa.js
const aa = {{name}};
meta:定义
partial : {
'codePartial': require('外部的一个代码模块aa.js')
}
使用方式:
{{>codePartial}}
Beta Was this translation helpful? Give feedback.
All reactions