4 Star 0 Fork 0

cyfan / ij2tpl.js

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
SYNTAX.EBNF 740 Bytes
一键复制 编辑 原始数据 按行查看 历史
template ::=
comment |
section |
text |
formatter |
partial;
comment ::= prefix comment_symbol anything suffix;
prefix ::= "{";
comment_symbol ::= "-";
(**
* anything ::= /[\S\s]+/
* Actually it is not contains `suffix`
*)
suffix ::= "}";
section ::=
section_head
template
[section_else
template]
section_tail;
section_head ::= prefix compare_symbol name suffix;
compare_symbol ::= "?" | "!";
name ::= anything;
section_else ::= prefix else_symbol name suffix;
else_symbol ::= "*";
section_tail ::= pretix end_symbol name suffix;
end_symbol ::= "/";
text ::= anything;
formatter ::= prefix [raw_symbol] name suffix;
raw_symbol ::= "#";
partial ::= prefix partial_symbol name suffix;
partial_symbol ::= "@";
JavaScript
1
https://gitee.com/urain39/ij2tpl.js.git
git@gitee.com:urain39/ij2tpl.js.git
urain39
ij2tpl.js
ij2tpl.js
master

搜索帮助