comments.vm
来自「这个weblogging 设计得比较精巧」· VM 代码 · 共 15 行
VM
15 行
<?xml version="1.0" encoding="UTF-8"?>
#set( $comments = $entry.comments )
$dateFormatter.applyPattern("MMMMM dd, yyyy 'at' hh:mm aa z")
<comments xmlns="http://www.joehewitt.com/content/blog.dtd"
entryid="$entry.Id">
#foreach( $comment in $comments )
<comment id="$comment.id">
<author>$comment.name</author>
<email>$comment.email</email>
<url>$comment.url</url>
<timestamp>$dateFormatter.format($comment.postTime)</timestamp>
<body>$utilities.escapeHTML( $comment.content )</body>
</comment>
#end
</comments>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?