程序以及基本可用了,需要继续完善页面 1.创建页面模板创建文件 app/views/tags/display.html *{ Display a post in one of these modes: full, home or teaser }* < ...
程序以及基本可用了,需要继续完善页面
1.创建页面模板
创建文件 app/views/tags/display.html
*{ Display a post in one of these modes: 'full', 'home' or 'teaser' }* <div > <h2 > <a href="#">${_post.title}</a> </h2> <div > <span >by ${_post.author.fullname}</span>, <span >${_post.postedAt.format('dd MMM yy')}</span> #{if _as != 'full'} <span > | ${_post.comments.size() ?: 'no'} comment${_post.comments.size().pluralize()} #{if _post.comments} , latest by ${_post.comments[0].author} #{/if} </span> #{/if} </div> #{if _as != 'teaser'} <div > <div >Detail: </div> ${_post.content.nl2br()} </div> #{/if}</div> #{if _as == 'full'} <div > <h3> ${_post.comments.size() ?: 'no'} comment${_post.comments.size().pluralize()} </h3> #{list items:_post.comments, as:'comment'} <div > <div > <span >by ${comment.author},</span> <span > ${comment.postedAt.format('dd MMM yy')} </span> </div> <div > <div >Detail: </div> ${comment.content.escape().nl2br()} </div> </div> #{/list} </div>#{/if}
海外公司注册、海外银行开户、跨境平台代入驻、VAT、EPR等知识和在线办理:https://www.xlkjsw.com
原标题:Play Framework 完整实现一个APP(五)
关键词:
*特别声明:以上内容来自于网络收集,著作权属原作者所有,如有侵权,请联系我们:
admin#shaoqun.com
(#换成@)。