libjsilver-java

Clearsilver templates in pure java
  http://code.google.com/p/jsilver/
  0
  no reviews



Jsilver is a pure-java implementation of clearsilver. key benefits of jsilver over clearsilver include:

performance
- templates are only parsed when the file changes - not for each request.
- optionally, templates can be compiled directly to java bytecode, making
rendering super-fast.
- once-off template optimization step simplifies template making rendering
even faster.
- internal optimizations to streamline string manipulation.
avoids the complexities of jni
- avoids the risk of native code taking down the jvm.
- avoids jni marshalling overhead.
simplifies ide use (no more forgetting java.library.path).
- allows for easy extension in java
- api allows template functions to be defined in java allowing logic to be
pulled out of templates.
- custom escaping / text filters can be plugged in.
- makes plugging in translations much simpler
(e.g. ).
- api designed with testability in mind.
- custom mechanisms can be plugged in for loading templates and caching.
- low-level access to template ast for advanced transformations.