tebricks.acceptance-test.0.8.3.source-code.Embed.html Maven / Gradle / Ivy
The following is a custom widget created from the HelloWorld example.
Notice that the stylesheet is available in the enclosing page via use of the @Require widget
(this page is not styled by default, whereas HelloWorld is).
We can even pass arguments to the embedded page (let's use the list "${arg}" instead of its
default message).
@Repeat(var="item", items=arg)
@Hello(message=item)
This text is replaced by the embed.
Let's try that again!!
@Repeat(var="item", items=arg)
@Hello(message=item)
This text is replaced by the embed.