title: Velocity Template Engine with Spark
body: <p>I'm currently using spark-java to dynamically generate a website.</p>
  
  <p>My folder structure is as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/3ywlT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3ywlT.png" alt="my folder structure"></a></p>
  
  <pre><code>FATAL: ResourceManager : unable to find resource 'test.vm' in any resource loader.
  </code></pre>
  
  <p>When trying to load the page however, I get this error. My code looks like this:</p>
  
  <pre><code>get("/helloworld", (req, res) -&gt; {
      Map&lt;String, Object&gt; model = new HashMap&lt;String, Object&gt;();
      model.put("test", "Hey there :)");
      return new ModelAndView(model, "test.vm");
  }, new VelocityTemplateEngine());
  </code></pre>
  
  <p>Pages without Velocity are loading without problem. Can anyone help me set this up correctly?</p>