Tiny template engine based on the Apache Velocity
2016-08-23
0 0 0
暂无评分
其他
如何获取积分?
Description
Tiny (650 lines of code, 4 source files) quick and dirty template engine based on the Apache Velocity syntax, but has less functionality: supports only if and foreach. it is extremely embeddable: it can even run from a GWT client code.
Things you can do with tiny-velocity:
- Generate html files from a template
- Generate source code of almost any kind
- Generate e-mails and system automated messages. ### Things you cannot do with it ###
- Resolve complicated expressions and do calculations inside the template
- Invoke java static methods, load custom classes, run scripts, hack and blow up your system...
- Include other templates inside a template (will be added in the near future)
- Make coffe
How to use
In this example we use a model class like the following:
public class MyModel{ public int number = 5; public String name = "Joe"; public Str
相关源码推荐
使用Java开发Android AOA Android开放式附件
0
0
暂无评分
Golang AOA Android开放式附件HID控制
0
0
暂无评分
pclite
0
0
暂无评分
GMSK线性接收机
0
0
暂无评分
传世AFT中变打金版版本--以前很火爆的,收藏很久
0
0
暂无评分
暂无评论