`import models.japidsample.Post `extends Layout.html `args String blogTitle, List allPost `set title:"Home" `if (allPost.size() > 0 ) {

`for (Post p: allPost) { `tag Display p, "home" |String title

The real title is: $title;

` `} `} else {

There is no post at this moment

`} `tag Tag2(blogTitle)

end of it