Twitter bootstrap 使用Play框架模板的popover中的动态表html

Twitter bootstrap 使用Play框架模板的popover中的动态表html,twitter-bootstrap,playframework,popover,dynamic-html,Twitter Bootstrap,Playframework,Popover,Dynamic Html,我需要使用PlayFramework2.0在TwitterBootstrapPopover中以表格格式动态生成HTML。但是下面使用Play framework模板的HTML代码给了我语法错误。有人能告诉我实现这一点的正确语法是什么吗 <a href="#" rel="popover" data-original-title="Test dynamic table HTML inside popover" data-content="@( "<table class='table

我需要使用PlayFramework2.0在TwitterBootstrapPopover中以表格格式动态生成HTML。但是下面使用Play framework模板的HTML代码给了我语法错误。有人能告诉我实现这一点的正确语法是什么吗

<a href="#" rel="popover"
data-original-title="Test dynamic table HTML inside popover" 
data-content="@(
"<table class='table table-bordered table-condensed'>" +
"<tbody>" +
    @for(item -> itemset) {
        "<tr><td>" + item.toString() + "</td></tr>" +
    }
"</tbody>" +
"</table>"
)"
</a>


提前感谢。

语法错误是什么?您的项目集是否在模板函数的顶部采用scala参数