I have read content for and yield tag
section of activeweb doc. and activeweb version
16:59 $ mvn dependency:tree | grep activeweb
[INFO] +- org.javalite:activeweb:jar:2.2:compile
[INFO] +- org.javalite:activeweb-testing:jar:2.2:test
The layout.ftl
template code lists below:
{
"ext": [<@yield to="ext"/>],
"data": ${page_content}
}
and the view page:
<@content for="ext">
"hello", "world"
</@content>
["this is data"]
I run the controller and ext
render nothing. Did I miss something?
BTW, how can I check the ContentForTag
contain some content or not?, I want the layout.ftl look like
{
<#if ext?has_content?>
"ext": [<@yield to="ext"/>],
</#if>
"data": ${page_content}
}