mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Update CHANGELOG.md
This commit is contained in:
parent
0da6cd0be5
commit
12388ff732
14
CHANGELOG.md
14
CHANGELOG.md
@ -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`
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user