i am trying to use if tag of playframework. but it is not working, what it shows is the raw #{if ... in browser. i am using play2.0. in cannot find in google if there is an update for play tags.. can someone help me out please i wonder whether it begins with @
this is the tag
#{if test }
test
#{/if}
sorry for this dumb question once again! i always forget that playframework2.0 tags are just scala tags.. now i got it by doing this:
@if(alltags.isEmpty) {
<h1>Nothing to display</h1>
} else {
@for(tags <- alltags) {
<li><a>@tags</a></li>
}
}
thanks for views anyway..:D
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.