[Dev-flock] r448 - in huginmunin/trunk/web/hm: . app/media/js app/templates

dan@thoughtandmemory.org dan at thoughtandmemory.org
Thu Dec 6 13:47:47 EST 2007


 r501 at insignificant:  dan | 2007-12-06 13:47:14 -0500
 Added preliminary support for client-side AJAX-enabled default context processors to parallel settings.TEMPLATE_CONTEXT_PROCESSORS.  Won't happen before Friday, though.
 
 It does raise some problems I ran into and then avoided earlier: I think we need to add another callback step in the client-side AJAX pattern.
 
 1. make request (e.g. submit form or click link)
 2. tell Template to fetch the necessary template and then render it
 3. while rendering template, potentially ping the server to grab updated or additional data
 4. inject rendered HTML into DOM
 
 If we always have the template and data beforehand, we don't need the middle two steps, (and that's how it will be Friday) but I'm not sure we'll always have that...?
 


Added:
   huginmunin/trunk/web/hm/app/media/js/context.js
Modified:
   huginmunin/trunk/web/hm/
   huginmunin/trunk/web/hm/app/media/js/json_template.js
   huginmunin/trunk/web/hm/app/media/js/settings.js
   huginmunin/trunk/web/hm/app/templates/base.html



More information about the Dev-flock mailing list