title: how to implement spring support for custom template engine?
body: <p>I've decided to use custom template engine with Spring MVC framework.</p>
  
  <p>my templates implemented in java and have method for rendering into String:</p>
  
  <pre><code>public String render(Map context);
  </code></pre>
  
  <p>how to configure spring to make them available in Controller beans as views, for example like:</p>
  
  <pre><code>ModelAndView modelAndView = new ModelAndView("activationPage"); // - view name which will actually be java class name reference.
  modelAndView.addObject("validationResult", validationResult);
  return modelAndView;
  </code></pre>
  
  <p>Model will be passed as context in code connecting spring and my template engine.</p>