We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
我还只做一个demo,代码如下 index.html
The text was updated successfully, but these errors were encountered:
我也遇到这个问题了,你怎么解决的?
Sorry, something went wrong.
@piaoluoya ##我的解决办法是没有用这grunt-tmodjs脚本,具体实现如下 1、 安装tmodJS npm install -g tmodjs 2、grunt里引入安装 grunt-shell 模块,再通过shell脚本的方式调用tomodjs,具体代码如下
npm install -g tmodjs
grunt.initConfig({ pkg: grunt.file.readJSON('package.json'), shell: { options: { stdout: true }, watchXtpl: { command: 'tmod ./src/mods --output ./src/tpl' }, buildXtpl: { command: 'tmod ./src/mods --output ./src/tpl --no-watch' } } }) grunt.loadNpmTasks('grunt-shell'); grunt.registerTask('tpl', ['shell:watchXtpl']);
谢谢了,我的问题也是没有用grunt-tmodjs 才解决的。
No branches or pull requests
我还只做一个demo,代码如下
index.html
预编译后
index.js
template('confirmOrder/index',function($data,$id) {
var $helpers=this,$escape=$helpers.$escape,tag=$data.tag,$out='';$out+='
$out+=$escape(tag);
$out+='
return new String($out);
});
貌似那个函数被干掉了
The text was updated successfully, but these errors were encountered: