jquery - Django and JavaScript Templates -


i developing site, using django web framework. there pages sections updated via jquery , ajax. when ajax calls made server, response in json form, use form dom. problem stuff can messy real quick doing things this, if json gets larger , more complicated:

$('#content').html('<p class="new">load new content</p>'); 

so, how can use clientside js templates e.g. handlebars ease creation of dom without making code messy?


Comments

Popular posts from this blog

c - CUDA code not processing if block properly -

Android Capture Image From Camera -

amazon web services - The request could not be satisfied in while using <alphaNumeric-string>.cloudFront.net -