#7249: switch the notebook's templating system to Jinja2
---------------------------+------------------------------------------------
Reporter: ddrake | Owner: boothby
Type: enhancement | Status: needs_work
Priority: major | Milestone: sage-4.3.1
Component: notebook | Keywords:
Work_issues: | Author: Dan Drake
Upstream: N/A | Reviewer:
Merged: |
---------------------------+------------------------------------------------
Comment(by timdumol):
MVC [1] separates the layers of the program into a model, which has the
data; views, which are ways to present the data; and the controller/s,
which control which data to show etc.
Currently the notebook serves as a model/controller and has some view
functions mixed into it (`html_*`). Separating things will make things
cleaner, and will make dealing with unicode easier: the view is presented
with encoded byte strings, the controller deals with unicode strings, and
data is retrieved from the model (db or filesystem) in encoded data which
is converted to unicode strings.
Without this separation, one will need to check whether each string passed
is an encoded byte string or a unicode string.
Separation will entail first removing the `html_*` functions, which in
turn means restructuring the templates. I'll be working on that very soon.
[1] http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller
--
Ticket URL: <http://trac.sagemath.org/sage_trac/ticket/7249#comment:5>
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.