![](https://img-blog.csdnimg.cn/20201014180756754.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
freemarker
DevGu
这个作者很懒,什么都没留下…
展开
-
Freemarker空白处理之微调指令 t、lt、rt
Synopsis<#t><#lt><#rt> DescriptionThese directives, instruct FreeMarker to ignore certain white-space in the line of the tag:t (for trim): Ignore all leading and trailing white-space in this line.lt (翻译 2015-08-10 11:57:50 · 6605 阅读 · 0 评论 -
freemarker ftl常用语法
${book.name}${book.name?if_exists} //值是否存在${book.name?default("xxx")} //默认值xxx(若book.name为null,则显示xxx;若book.name不为空,则显示对应值)${book.name!"xxx"} //默认值xxx(若book.name为null,则显示xxx;若book.name不为空,则显示对应值)${b原创 2015-08-20 15:33:49 · 723 阅读 · 1 评论