有点奇怪的NVelocity问题
按Apache在Velocity用户手册中的说法,模板中reference的正规格式应该是应该是${reference_name},但在NVelocity的实践过程中发现以下的片段不能被正确解释:
#foreach( ${element} in ${elementList} )
${element}
#end
反而以下非正规用法却能正确的被解释:
#foreach( $element in ${elementList} )
${element}
#end
这是不是NVelocity的Bug呢?
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/None.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/ExpandedBlockStart.gif)
![](/Images/OutliningIndicators/None.gif)
这是不是NVelocity的Bug呢?