Class VelocityEngine

java.lang.Object
services.moleculer.web.template.AbstractTemplateEngine
services.moleculer.web.template.VelocityEngine

public class VelocityEngine extends AbstractTemplateEngine
Server-side template engine based on Apache Velocity API. Required dependency:
// https://mvnrepository.com/artifact/org.apache.velocity/velocity-engine-core
compile group: 'org.apache.velocity', name: 'velocity-engine-core', version: '2.1'
See Also:
  • Field Details

    • engine

      protected org.apache.velocity.app.VelocityEngine engine
      Internal Velocity instance.
    • macroLibraries

      protected List<String> macroLibraries
      A list of template files containing macros to be used when merging.
    • charsetName

      protected String charsetName
      Charset name.
    • inited

      protected AtomicBoolean inited
      Is VelocityEngine inited?
    • loader

      Resource loader.
  • Constructor Details

    • VelocityEngine

      public VelocityEngine()
  • Method Details