-
我还只做一个demo,代码如下
index.html
aa{{tag}}
cc{{time | dateFormat:'yyyy年 MM月 dd日 hh:mm:ss'}}
预编译后
index.js
template('confirmOrder/index',function($data,$id) {
var $helpers…
-
fs.js:689
return binding.stat(pathModule._makeLong(path));
^
Error: ENOENT, no such file or directory '/home/lxg/www/tol-web/protected/vendor/webtemplate/templates/config/template-h…
-
你好,使用 gulp-tmod 中遇到了点问题,求指导。
# 我这样用是ok的
``` javascript
gulp.task('mobile-tmod', function () {
return gulp.src(['./mobile/tpl/*.html', './mobile/tpl/**/*.html']).
pipe(tmodjs({
…
-
为什么art-template支持webpack不支持gulp呢?tmodjs支持gulp,但是art-template版本是旧的,希望能加入gulp支持。
wapco updated
7 years ago
-
/_TMODJS:{"version":"1.0.1"}_/ 默认的合并信息是这样的。
cylzh updated
10 years ago
-
RT,这让我有些困扰。这些动态模板是基于一个模板而生成的,无法使用tmodjs处理,考虑了一下,页面加载一个tmodjs的编译引擎,或者为了这些动态模板加载artTemplate,好像都有些得不偿失。动态模板这一块逻辑较多,牵扯复杂,不能轻易修改。请指点,多谢
-
改task里的combo改为false,从html生成的js仍然是压缩的,如:
gulp.task('default', function(){
return gulp.src('./test/tpl/*_/_.html')
.pipe(tmodjs({
base: './test/tpl',
comb…
-
pipe(tmodjs({
templateBase: 'template'
}))
令我感到困惑的是这里的templateBase 参数,不写,gulp 编译不通过, 但是我把参数改成
'hahaha' , 'heiheihei' , 在生成的template.js 里面得不到更合的反应;
弄明白这个参数的动力源自于我遇到的路径问题,我按照文档的默认写法,最终..…
-
JX(腾讯) – http://alloyteam.github.com/JX
KISSY(淘宝) – http://www.kissyui.com
QWrap(百度) - http://www.qwrap.com
Tangram(百度) – http://tangram.baidu.com
Como – http://www.comsome.com
EdoJs – http://www…
-
配置一样,为什么fis release 的时候出现这种错误呢?