@extends(main) @import foo.bar.*
The tag content
@verbatim() {
@arg int number
inside foo.tagWithCallback
About to callback tag body
@number: @renderBody(who: "Velocity")
@number: @renderBody(who: "Freemarker")
}
| code | result |
|---|---|
@verbatim() {
@tagWithCallback()
}
|
@tagWithCallback() |
@verbatim() {
@tagWithCallback(2)
}
|
@tagWithCallback(2) |
@verbatim() {
@tagWithCallback(3).callback(String who) {
my name is @who
}
}
|
@tagWithCallback(3).callback(String who) { my name is @who } |
@verbatim() {
@tagWithCallback(3) {
body without parameter
}
}
|
@tagWithCallback(3) { body without parameter } |