velocity 例子
最简单的hello world 程序。基础搭建:从网上下载velocity.zip,把lib下的.jar文件导入到工程中。另外还要导入velocity.jar 和velocity-dep.jar.
hellosite.vm 放到工程的目录底下。
<div style="padding-right: 5px; padding-left: 4px; font-size: 13px; padding-bottom: 4px; width: 98%; padding-top: 4px; background-color: #eeeeee; border: #cccccc 1px solid;">Hello $name! Welcome to $site world!
页:
[1]