Python Webpages

François Pinard pinard at iro.umontreal.ca
Mon Apr 29 18:38:01 EDT 2002


[Jon Ribbens]

> > Yet, seeing the whole thing, both the designer and the programmer
> > can leave the page in a consistent state, even if not fluent in the
> > _other_ field.

> Woah, *big* disagreement here.  Not sure what kind of designers you are
> used to, but in my experience they, and/or the tools they use are
> incapabale of editing the HTML without destroying the code.

Strange.  For more than one year now, we never had the shadow of a
problem with HTML designers.  Everybody is competent in his field and
respectful for the work of others.  There is no "we are good they are
rotten" speak here.  Maybe you are not working with the proper people,
and this had some influence on `jonpy' design? :-)

> I must admit I have never yet seen a system which integrates HTML and
> code in the same file without the file ending up an unreadable mess.

I must admit that HTML is pretty messy to start with, especially the HTML
as output by some Web editor tools.  Included Javascript is not always
nice either.  When I had to massage many HTML files, a few years ago, I
wrote something named `xxml.el' to re-indent and re-fill HTML more nicely
(`xxml.el' extends on Lennart Staflin's PSGML), and surprisingly to me,
from a friend to another, `xxml.el' spreaded and acquired some popularity
in the community over the years.

Once the HTML cleaned up, turning it into active pages, even with embedded
Python, has been rather clean in my eyes.  This is my experience, at least.

> If you take a look at the following URL you can see examples of jonpy
> template use:
>   http://jonpy.sourceforge.net/wt-examples.html#templatecode

OK, thanks, I'll take a look when I'll find a few bits of free time.

-- 
François Pinard   http://www.iro.umontreal.ca/~pinard





More information about the Python-list mailing list