mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Fixes #36 - Don't use invokeBody in cache taglib
This commit is contained in:
parent
26539ebd45
commit
e1e9287c35
@ -5,6 +5,10 @@ Changelog
|
||||
|
||||
## 2.0.x
|
||||
|
||||
### 2.0.5
|
||||
|
||||
- Fixed #36 - Don't use `invokeBody()` in the cache taglib
|
||||
|
||||
### 2.0.4
|
||||
|
||||
- :exclamation: Fixed #36 - Deprecated - When using `<include>` with body content, nested body content is now passed in as `String` property named `body`. Old behavior: nested content would be passed in as a `Function` property named `invokeBody` that would return the `String` value of the nested content. `invokeBody()` has been deprecated.
|
||||
|
||||
@ -41,8 +41,8 @@ module.exports = {
|
||||
{
|
||||
builder: function(callback) {
|
||||
var result = out.captureString(function () {
|
||||
if (input.invokeBody) {
|
||||
input.invokeBody();
|
||||
if (input.renderBody) {
|
||||
input.renderBody(out);
|
||||
}
|
||||
});
|
||||
callback(null, result);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user