Fixes #36 - Don't use invokeBody in cache taglib

This commit is contained in:
Patrick Steele-Idem 2015-02-23 17:52:23 -07:00
parent 26539ebd45
commit e1e9287c35
2 changed files with 6 additions and 2 deletions

View File

@ -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.

View File

@ -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);