小胡子
XQuery 3.1的髭模板语言的部分实现。
有关详细信息,请参见 。
实施了什么
变数
有条件的
栏目
反演
汇编
Lambdas
安装
您可以使用xqpm自行安装!
xqpm xq-mustache
命名空间
http://xq-mustache
依存关系
没有任何
方法
本模块按照Moustache的精神包含三种简单的方法: render , compile和is-mustache 。
使成为
render方法可以采用原始字符串或编译后的表达式,并返回渲染后的字符串。
render ($template as item (), $hash as map ()) as xs:string
编译
编译模板就像调用以下命令一样容易:
compile ($template as item ()) as element (fn:analyze-string-re