标签:参考 bsp freemark 函数 first html ted user amp
"Foo"
或者 ‘Foo‘
或者 "It‘s \"quoted\""
或者 ‘It\‘s "quoted"‘
或者 r"C:\raw\string"
123.45
true
, false
["foo", "bar", 123.45]
; 值域: 0..9
, 0..<10
(或 0..!10
), 0..
{"name":"green mouse", "price":150}
user
user.name
, user["name"]
products[5]
.main
"Hello ${user}!"
(或 "Hello " + user + "!"
)name[0]
name[0..4]
,不包含结尾: name[0..<5]
,基于长度(宽容处理): name[0..*5]
,去除开头:name[5..]
users + ["guest"]
products[20..29]
, 不包含结尾: products[20..<30]
,基于长度(宽容处理):products[20..*10]
,去除开头: products[20..]
passwords + { "joe": "secret42" }
(x * 1.5 + 10) / 2 - y % 100
x == y
, x != y
, x < y
, x > y
, x >= y
, x <= y
, x lt y
, x lte y
, x gt y
, x gte y
, 等等。。。。。。!registered && (firstVisit || fromEurope)
name?upper_case
, path?ensure_starts_with(‘/‘)
repeat("What", 3)
name!"unknown"
或者 (user.name)!"unknown"
或者 name!
或者 (user.name)!
name??
或者 (user.name)??
=
, +=
, -=
, *=
, /=
, %=
, ++
, --
参考原文 http://freemarker.foofun.cn/dgui_quickstart_basics.html
标签:参考 bsp freemark 函数 first html ted user amp
原文地址:https://www.cnblogs.com/lpob/p/10822978.html