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++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

javascript - angular ng-required radio button not toggling required off in firefox 33, OK in chrome -

xcode - Swift Playground - Files are not readable -