Update CHANGELOG.md

This commit is contained in:
Patrick Steele-Idem 2015-05-27 13:54:51 -06:00
parent 0da6cd0be5
commit 12388ff732

View File

@ -7,7 +7,17 @@ Changelog
### 2.5.0
- Fixes #78 - Custom Node.js require extension for Marko template files
- Fixes #78 - Custom Node.js require extension for Marko template files. Example usage:
```javascript
// Install the Node.js require extension in your application's main script (server-side only)
require('marko/node-require').install();
// Now you can require `*.marko` files just like any other JavaScript module
var template = require('./hello.marko');
var html = template.renderSync({ name: 'Frank' });
```
- Compiled templates now export a loaded Template instance. In the previous version of marko, compiled templates exported a function that could be used to create a loaded Template instance.
## 2.4.x
@ -308,4 +318,4 @@ C
## 1.5.4
- Added support for `$global` in `renderSync`
- Added support for `$global` in `renderSync`