NVelocity的基本用法
发布日期:2021-05-09 09:34:29 浏览次数:20 分类:博客文章

本文共 2979 字,大约阅读时间需要 9 分钟。

NVelocity������������������

������������������NVelocity������������������������������������������������������runtime.strict.math=true������������������������������
���������������������������������������������������������������������������������
���������������������������������������������������������������#include������������������()���������������������NVelocity���������#include("abc.html")���������������������������������include������Include���������������������

���������������������$ [ ! ][ { ][ a..z, A..Z ][ a..z, A..Z, 0..9, -, _ ][ } ]���

���NVelocity���������������������������������$������������������������������������!������������������������������������������������������������������$article������������������������$article���������$!article���������������������{}���������������������������������������������������������������������������������������{}������������$articleshow������������$article������������������������${article}���������������������NVelocity���������������������������������������������������

���������������������$ [ { ][ a..z, A..Z ][ a..z, A..Z, 0..9, -, _ ]* .[a..z, A..Z ][ a..z, A-Z, 0..9, -, _ ]* [ } ] ���

������$article.Title������${article.Title}���

���������������������$ [ { ][ a..z, A..Z ][ a..z, A..Z, 0..9, -, _ ]* .[ a..z, A..Z ][ a..z, A..Z, 0..9, -, _ ]*( [ optional parameter list... ] ) [ } ]���

���������$article.GetListByTitle('nvelocity')���${article.GetListByTitle('nvelocity')}������������������������������������������$article.get_Title()���������

������������#set���# [ { ] set [ } ] ( $ref = [ ", ' ]arg[ ", ' ] )���

���������$article.Title='NVelocity'���$$article.Categories=[1,2,3]���������������������������������������������������$article.Title=$otherArticle.Title.SubString(0,3)���������������������$article.Page=4/3���������������������������������$article.set_Title('NVelocity')���

������������#if���# [ { ] if [ } ] ( [condition] ) [output] [ # [ { ] elseif [ } ] ( [condition] ) [output] ]* [ # [ { ] else [ } ] [output] ] # [ { ] end [ } ] ���

���������������������bool������������������������������#if($article.Total>1) $article.Title #else ������������ #end���

������������#foreach���# [ { ] foreach [ } ] ($refinarg)statement# [ { ] end [ } ]���

���������#foreach($article in $articles) $article.Title #end���

������������������������#include���# [ { ] include [ } ] ( arg[ arg2 ... argn] )���

���������#include('tmp.js')���������tmp.js������������������������������������������������������������#include($article.Url)���

���������������������������#parse���# [ { ] parse [ } ] ( arg )���

���������#parse('tmp.js')������#include������������������tmp.js������������NVelocity���������������������������������������������������������������������

������������stop���# [ { ] stop [ } ] ���

���NVelocity���������������������������������������������������������������������

������������#evaluate���# [ { ] evaluate [ } ] ( arg )���

���������#evaluate('$article.Title')���������������������$article.Title

上一篇:操作ACCESS数据库注意事项
下一篇:确保某个BeanDefinitionRegistryPostProcessor Bean被最后执行的几种实现方式

发表评论

最新留言

初次前来,多多关照!
[***.217.46.12]2025年04月04日 10时00分51秒