【发布时间】:2012-08-28 10:24:07
【问题描述】:
我想生成一个评论树。
<ul>
<li> First comment
<ul>
<li> reply to first comment
<li> another reply to first comment
</ul>
</li>
</ul>
我有一个Tree (Entity Comment) 结构。
我想拥有 hamlet 的所有好处(#{commentContent comment} 将受到 XSS 保护)。
如何使用 Hamlet 实现递归 Html 渲染?
【问题讨论】: