Just a simple velocity standalone app based on maven structure. Here is the code snippet written in Scala to render the template helloworld.vm
in ${basedi
I faced the similar problem with intellij IDEA. you can use this
VelocityEngine ve = new VelocityEngine();
Properties props = new Properties();
props.put("file.resource.loader.path", "/Users/Projects/Comparator/src/main/resources/");
ve.init(props);
Template t = ve.getTemplate("helloworld.vm");
VelocityContext context = new VelocityContext();