编译时调用辅助方法报错
编译时调用辅助方法报错：

```
Template ID: ./group/list-main
/usr/www/piaoluoya/todo/web/src/html/.debug.js:13
$out+=$escape(value.created_at | dateFormat:'yyyy-MM-dd hh:mm:ss是');
                                       ^
Fatal error: Uncaught, unspecified "error" event.
```

用最新的tmodjs和最新的Grunt tmodjs 都试过

package.json配置

```
{
"name": "template",
"version": "1.0.0",
"dependencies": {
    "tmodjs": "1.0.1-rc8"
 },
"tmodjs-config": {
    "output": "build",
    "charset": "utf-8",
    "syntax": "simple",
    "helpers": "./build/templateHelpers.js",
    "escape": true,
    "compress": true,
    "type": "default",
    "runtime": "template.js",
    "combo": true,
    "minify": true,
    "cache": true
    }
}
```

目录结构：

```
├── build
│   ├── group
│   │   ├── create.js
│   │   ├── list-main.js
│   │   └── list.js
│   ├── menu
│   │   └── home.js
│   ├── message
│   │   └── list.js
│   ├── setting
│   │   ├── email-main.js
│   │   └── email.js
│   ├── template.js
│   ├── templateHelpers.js
│   └── user
│       ├── login.js
│       └── register.js
├── group
│   ├── create.html
│   ├── list-main.html
│   └── list.html
├── menu
│   └── home.html
├── message
│   └── list.html
├── package.json
├── setting
│   ├── email-main.html
│   └── email.html
└── user
    ├── login.html
    └── register.html
```

  ./build/templateHelpers.js内容是copy Github上的

```
template.helper('dateFormat', function (date, format) {

date = new Date(date);

var map = {
    "M": date.getMonth() + 1, //月份
    "d": date.getDate(), //日
    "h": date.getHours(), //小时
    "m": date.getMinutes(), //分
    "s": date.getSeconds(), //秒
    "q": Math.floor((date.getMonth() + 3) / 3), //季度
    "S": date.getMilliseconds() //毫秒
};
format = format.replace(/([yMdhmsqS])+/g, function(all, t){
    var v = map[t];
    if(v !== undefined){
        if(all.length > 1){
            v = '0' + v;
            v = v.substr(v.length-2);
        }
        return v;
    }
    else if(t === 'y'){
        return (date.getFullYear() + '').substr(4 - all.length);
    }
    return all;
});
return format;
});
```
