jasonmoo/t.js — pull request #7 by icyflash (2012-08-30 03:11:14+00:00)
Title: Add Function Support

Sometimes we need format data before render.

### We have:
```javascript
{"CreatedAt": 1346295626942}
```
### We need:
```javascript
Thu Aug 30 2012 11:00:26 GMT+0800
```
### We can:
```javascript
var template = new t("

{{#CreatedAt|dateFormat}}

");
template.register("dateFormat",function(data){return new Date(parseInt(data));});
template.render({"CreatedAt": 1346295626942});
```