
本文共 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
发表评论
最新留言
关于作者
