From 8b7189ebbf753b6a6fd9b3f04edc2f55d400606a Mon Sep 17 00:00:00 2001 From: tindli Date: Tue, 18 Aug 2015 22:17:59 +0200 Subject: [PATCH] improved docs for input.renderBody() --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index 34648c9cd..5e395dc91 100644 --- a/README.md +++ b/README.md @@ -1581,6 +1581,7 @@ exports.render = function(input, out) { out.write('AFTER BODY'); } ``` +For users of Marko Widgets: Invoking `input.renderBody` is equivalent to using the `w-body` attribute for tags (in conjunction with the `getInitialBody()` lifecycle method; see [getInitialBody()](https://github.com/marko-js/marko-widgets#getinitialbodyinput-out)). A tag renderer should be mapped to a custom tag by creating a `marko-taglib.json` as shown in the next few sections.