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
Post a Comment