Generates HTML using a JSON template and a JSON model