mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
improved docs for input.renderBody()
This commit is contained in:
parent
e050af4044
commit
8b7189ebbf
@ -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.
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user