{{o.content | formatHtml}}
{{o.author.name}}
{{o.pubDate | formatDate}}
{{parseInt(o.viewCount) | bigNumberTransform}}
dom.js 是一款可用在客户端和服务器端的 JavaScript 模板引擎,示例代码: var mytemplate = function () { header( h1('Heading'), h2('Subheading')); nav( ul({ 'class': 'breadcrumbs' }, li(a({ href: '/' }, 'Home')), li(a({ href: '/section/'}, 'Section')), li(a('Subject')))); article( p('Lorem ipsum...')); footer('Footer stuff'); };...