【发布时间】:2010-02-09 05:12:12
【问题描述】:
nVelocity(或 Velocity)中的非真或假 if 语句的语法是什么?
更重要的是,这在 nVelocity 文档中的什么位置?我已经在谷歌上搜索了很长一段时间都无济于事。
我尝试了几种不同的组合,例如:
#if (!$artist.IsFestival)
$artist.FestivalName
#end
和
#if ($artist.IsFestival == false)
$artist.FestivalName
#end
真令人沮丧!
提前致谢!
-EV
【问题讨论】:
-
nvelocity 文档:castleproject.org/others/nvelocity/index.html
-
IsFestival 是公共财产吗?
-
@MauricioScheffer 您指向 nvelocity 文档的链接不再起作用...因为速度语法错误!大声笑
-
@BritishDeveloper 不,这是因为网站切换到了基于 PHP 的 CMS。这是 NVelocity 文档:docs.castleproject.org/MonoRail.NVelocity.ashx
标签: c# java asp.net velocity nvelocity