Introduction to Velocity

Introduction to Velocity

      Velocity is a simple yet powerful Java-based template engine that renders data from plain Java objects to text, xml, email, SQL, Post Script, HTML etc. The template syntax and rendering engine are both easy to understand and quick to learn and implement.

      Capabilities reach well beyond the realm of the web (ex. xdoclet, middlegen, Intellij etc.) to enable programmers to focus on writing functional code , while in parallel, template designers can directly modify templates to create attractive output . In webapps, Model-View-Control (MVC) separation can be strongly enforced because templates do not contain "code". Or, at the programmers discretion "tools" can be made available in the template for more direct access to data.

       VelocityTools is a sub-project which contains extensions aimed at solving common web and non-web problems. For example, GenericTools provide Date/Number formatting, Math operations, and more. VelocityView provides a time-tested servlet which can render *.vm files in web applications. Finally, VelocityStruts builds upon this foundation to give Struts developers a robust and easy-to-implement alternative to JSP. Additional non-web examples are Anakia and DVSL which use Velocity for "easier than XSLT" transformations of XML.

       More details and the official documentation are on the Velocity Home Page . Be sure to read the Overview , Getting Started , and the Web Application Guide . You'll also want to check out the VelocityFAQ , or post your question to the Velocity user list .

       This Wiki contains community and developer-oriented content. Please feel free to add new articles, FAQ entries, or code examples. If you've created a website or application that uses Velocity, add it to the PoweredByVelocity page!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值