mirror of
https://github.com/marko-js/marko.git
synced 2025-12-08 19:26:05 +00:00
Update README.md
Should be input.invokeBody()
This commit is contained in:
parent
423161ecf7
commit
08e196150a
@ -982,7 +982,7 @@ If, and only if, a tag has nested content, then a special `invokeBody` method wi
|
|||||||
module.exports = function(input, context) {
|
module.exports = function(input, context) {
|
||||||
context.write('BEFORE BODY');
|
context.write('BEFORE BODY');
|
||||||
if (input.invokeBody) {
|
if (input.invokeBody) {
|
||||||
invoke.invokeBody();
|
input.invokeBody();
|
||||||
}
|
}
|
||||||
context.write('AFTER BODY');
|
context.write('AFTER BODY');
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user