`import cn.bran.Post `extends Layout.html `args String blogTitle, List allPost #{set title:"Home"/} `if (allPost.size() > 0 ) { `for (Post p: allPost) { #{Display p, "home" |String title} The real title is: $title; #{/} `} `} else { There is no post at this moment `} #{Tag2 blogTitle/} end of it
The real title is: $title;
There is no post at this moment
end of it