Generating HTML document from template using NVelocity

added by Krzysztof Seroka
8/3/2013 9:49:55 AM

3 Kicks, 129 Views

Sometimes there is a need to generate a document (HTML report, e-mail etc.) from a given template. It’s simple when it comes to just replace some tokens, but in case of more complicated operations (dealing with collections, conditions, loops) it’s better to use advanced template engine. Fortunately there is NVelocity that can be used as a standalone tool that gives pretty much flexibility.