Re: templates

2006-01-31 Thread thakadu
I haven't got around to trying HTMLTemplate yet but it is on my list of things to do. It would be great to see how it compares in perfomance and simplicity to PyMeld and other DOM approaches. -- http://mail.python.org/mailman/listinfo/python-list

Re: templates

2006-01-31 Thread thakadu
Yes I looked at that but I did not benchmark it. Basically it seems to convert the Meld or part of a Meld into a %s template in any case and I already knew that %s performace was very good. So if I had used PyMeld combined with %s then sure it would be much faster but I wanted to benchmark a pure P

Re: templates

2006-01-31 Thread has
thakadu wrote: > I did not try PyMeldLite because the HTML I am using is exactlty that: > HTML and not XHTML. FWIW, HTMLTemplate is pretty lax and not restricted to XHTML. The only XML-ish requirement is that elements need to be properly closed if they're to be used as template nodes, e.g. ... and

Re: templates

2006-01-31 Thread Richie Hindle
[thakadu] > The method of generation the table rows was exactly the same as > the example in the PyMeld documentation Did you try using toFormatString() to speed it up? See http://www.entrian.com/PyMeld/doco.html -- Richie Hindle [EMAIL PROTECTED] -- http://mail.python.org/mailman/listinfo/py

Re: templates

2006-01-31 Thread thakadu
I would like to give a few more specifics about my "benchmarking". The web page had about 10 simple fields and a table of roughly 30 table rows. The method of generation the table rows was exactly the same as the example in the PyMeld documentation ie you create the Meld, you make a copy of a prot

Re: templates

2006-01-31 Thread has
Christoph Zwerschke wrote: > thakadu schrieb: > > I have used PyMeld (http://www.entrian.com/PyMeld/) which is one of > > very few that gives a 100% separation of code and presentation, in fact > > PyMeld is not strictly speaking a template system at all. > > Yes, it is more like XIST that I menti

Re: templates

2006-01-31 Thread Richie Hindle
[Christoph] > The reason why [PyMeld] is slower than native templates seems clear: You > convert the whole page to objects in memory, and then serialize > everything back to HTML. [Peter] > Unless I'm misremembering, PyMeld is special amongst the "total > decoupling of code and presentation" c

Re: templates

2006-01-31 Thread Peter Hansen
Christoph Zwerschke wrote: > thakadu schrieb: > >>I have used PyMeld (http://www.entrian.com/PyMeld/) which is one of >>very few that gives a 100% separation of code and presentation, in fact >>PyMeld is not strictly speaking a template system at all. > > Yes, it is more like XIST that I mentione

Re: templates

2006-01-31 Thread Christoph Zwerschke
thakadu schrieb: > I have used PyMeld (http://www.entrian.com/PyMeld/) which is one of > very few that gives a 100% separation of code and presentation, in fact > PyMeld is not strictly speaking a template system at all. Yes, it is more like XIST that I mentioned in another post. The reason why th

Re: templates

2006-01-30 Thread thakadu
I have used PyMeld (http://www.entrian.com/PyMeld/) which is one of very few that gives a 100% separation of code and presentation, in fact PyMeld is not strictly speaking a template system at all. I have also used Cheetah. (http://www.cheetahtemplate.org/) However for a recent project (http://muti

Re: templates

2006-01-30 Thread Christoph Zwerschke
Christoph Zwerschke wrote: > It must not always be templating systems. E.g. > > Nevow: http://divmod.org/projects/nevow Just saw that Newvow provides templates and a tag attribute language as well, not only the "Stan" part which is more like XIST. -- Christoph -- http://mail.python.org/mailman

Re: templates

2006-01-30 Thread Christoph Zwerschke
projecktzero wrote: > For some of the web programming I've done in Python, I've used > htmltmpl. I had some experience with it in Perl, and found a Python > version. > What web templating systems do you use and why? BTW, there are also a couple of other very clever concepts for creating web pages

Re: templates

2006-01-30 Thread Christoph Zwerschke
projecktzero wrote: > I like that there's nearly a complete separation between the > presentation and the code. This is great when one person is designing > the pages and another is writing the code to drive those pages. > ... > What web templating systems do you use and why? A plethora of such Py

Re: templates

2006-01-30 Thread Bruno Desthuilliers
projecktzero a écrit : > For some of the web programming I've done in Python, I've used > htmltmpl. I had some experience with it in Perl, and found a Python > version. > > http://htmltmpl.sourceforge.net/ > > I like that there's nearly a complete separation between the > presentation and the cod