#7786: Restructure templates to idiomatic Jinja
---------------------------+------------------------------------------------
   Reporter:  timdumol     |       Owner:  was                    
       Type:  enhancement  |      Status:  needs_review           
   Priority:  major        |   Milestone:  sage-feature           
  Component:  notebook     |    Keywords:                         
Work_issues:               |      Author:  Tim Dumol, Mitesh Patel
   Upstream:  N/A          |    Reviewer:  Mitesh Patel           
     Merged:               |  
---------------------------+------------------------------------------------

Comment(by mpatel):

 In V10, I replaced `$(document).ready()` in a few places with either
 synchronous evaluation or `$(window).load()` (in particular,
 `$(document).load()` does not always work).  The main reason is timing ---
 the "DOM ready" event can fire too early for certain notebook
 initializations.  For example, evaluate
 {{{
 import time
 time.sleep(20)
 print 'foo'
 }}}
 and reload the worksheet.  Published interacts are another, forthcoming
 example...

 I noticed that `Worksheet.html_cell_list` in V9

  * Referred to a non-existent template `published_worksheet.html`.
  * Is really no longer used.  The lone remaining call, in `twist.py` sends
 refreshed HTML that `notebook_lib.js` ignores.

 I've replaced the call with an empty string.  ''However,'' the main
 problem is that HTML for published worksheets is now no longer cached by
 the server.  Or am I mistaken?

 I'll try to fix this in V11...

-- 
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7786#comment:29>
Sage <http://www.sagemath.org>
Sage: Creating a Viable Open Source Alternative to Magma, Maple, Mathematica, 
and MATLAB
-- 
You received this message because you are subscribed to the Google Groups 
"sage-trac" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/sage-trac?hl=en.


Reply via email to