Web templating/db tool with best designer/coder separation?
tchur at optushome.com.au
Sat Jun 22 23:22:18 CEST 2002
Bengt Richter wrote:
> E.g., if you were hoping for an improvement over current practice,
> which do you consider to be the tool(s) to beat, and what would
> the killer improvement(s) be? TIA.
Albatross by Object Craft (see http://www.object-craft.com.au ) does
an excellent job of separating the presentation layer from the
logic - my understanding is that such separation was one of its main
design goals. However, it does not take a pedantic position on this - it
still allows Python code to be embedded in HTML templates - such
is discouraged, but Albatross provides mechanisms to allow you to do it
if you insist. But more usefully, Albatross provides tags which allow
conditional processing (if-elif-else) and most usefully, iteration, to
placed in the HTML template. So your Python business logic code can
a Python sequence of, say, database query results, but it is the HTML
which iterates through that list to create the final HTML which is sent
user's browser. Such a feature is essential, because otherwise the
Python code ends up needing to creating HTML output itself, which is
substituted into the HTMl template. Thus, the Albatross model is really
"all HTML-related stuff, including conditional processing and iteration,
after in the HTML templates, and all business logic stuff, divorced from
in which it will be presented, is handled by Python modules." Of course,
just the well-known model-view-controller approach, but Albatross
very nicely, IMO.
for more information about this (and to get an idea of the depth of the
I suspect that the Object Craft guys would welcome help with further
Albatross. What the world really needs are more Pythonic Web
than more Pythonic Web application frameworks.
More information about the Python-list