title: Best way to build HTML from json
body: <p>I'm trying to build a POC to migrate a heavy JSF application to a stateless ajax/restful application .
  In the proccess i can't decide what is the best way of presenting the JSON data returned to the screen , i can see 2 major approaches one is to have templates and use something like prototype's toHTML() with them and the other is to build the objects in javascript and then use appendchild .
  the first one is much more easy to understand for a new person who has to maintain the code as the templates are very clear and easier to maintain (allso the skills needed to change the html in templates are lower) but from what i understand the appendchild method is better in regards to browser speed .</p>
  
  <p>what is the preferable way to handle this and am i missing other points of comparison between the two ? 
  <a href="https://stackoverflow.com/questions/494143/how-do-i-create-a-new-dom-element-from-an-html-string-using-built-in-dom-methods">append child</a> is this a good compromise between the two ? 
  are there any other ways to do this ?<br>
  P.S  : to be clear i'm talking about client side manipulations only </p>