improved docs for input.renderBody()

This commit is contained in:
tindli 2015-08-18 22:17:59 +02:00
parent e050af4044
commit 8b7189ebbf

View File

@ -1581,6 +1581,7 @@ exports.render = function(input, out) {
out.write('AFTER BODY'); 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. A tag renderer should be mapped to a custom tag by creating a `marko-taglib.json` as shown in the next few sections.