Created
June 27, 2017 05:13
-
-
Save calvincodes/306525825332ab57f9cc1af0e8a8fbc8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Configure Velocity Engine with NO LOG mode | |
Velocity.setProperty(RuntimeConstants.RUNTIME_LOG_LOGSYSTEM, new NullLogChute()); | |
Velocity.init(); | |
VelocityContext velocityContext = new VelocityContext(renderKeyValueMap); | |
StringWriter populatedVelocityTemplate = new StringWriter(); | |
Velocity.evaluate(velocityContext, populatedVelocityTemplate, templateName, templateBody); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment