title: Generate fragments of html view template in Play Framework
body: <p>I would like to know how to generate some html in java, and then pass it to the view using parameter. How can I achieve something like this?</p>
  
  <p>I've searched Official Play Framework documentation, but nothing found about it.</p>
  
  <p>I know it is possible because we can pass one template to another using variable.</p>
  
  <p>In my case I would like to generate that view on java.
  F.e. I would like to create method display in inherited classes that will generate ready to use html code.</p>
  
  <p>Please help</p>
  
  <p>PlayFramework 2.2.6</p>