Skip to content

NessComputing/velocity-guice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

velocity-guice

Provide simple Guice bindings for Apache Velocity. Currently very bare-bones.

Features

  • Uses commons-vfs to find templates, so any filesystem supported by commons-vfs works
  • All templates are found eagerly, so any missing templates will fail fast and explosively
  • Can bind "template directories" - any .vm files will be exposed as template bindings

Limitations

  • Since all templates are bound at Guice module time, there is no dynamic discovery (yet)
  • Uses a different VelocityEngine per template -- not sure of the consequences of this
  • Not terribly configurable (yet)
  • API is not stable (yet) and may change before the first release

Usage

Read src/test/java/.../VelocityGuiceModuleTest.java for basic usage

License

Released under Apache License 2.0 by Ness Computing

http://www.apache.org/licenses/LICENSE-2.0.html

Pull requests welcome!

About

Guice bindings for Apache Velocity

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 2

  •  
  •  

Languages