Cliff Wells wrote:
>> We won't do that much in the xml file anyway. Basicly we will need Kid
>> for some 'if' statements in the code, similar to the current skin
>> files. The logic itself (how to draw a listing) will be done in pure
>> Python. And while it looks also scary to me, so does php and designers
>> seem to be happy with that.
>
> Hm.  If all you need is some simple "if" statements, what is the
> advantage Kid provides over any of the other dozens of Python templating
> systems (XML based or not)?  

The advantage of Kid is that I looked at it :)

There are many template libs are there, I know. I only looked at Kid
and it looked ok. So maybe there are problems, maybe others like
Cheetah is better, I don't know.

And I still want the same template engine for skin and webserver. So
the skin may only need 'if', the webserver will need more. 

> Also, note that Buffet makes it quite simple to choose any template
> system you like and hook it into CherryPy, so the choices aren't limited
> to what is advertised.  I wrote the TurboStan plugin in just a couple
> hours.

My kaa.cherrypy framework is similar. It hooks a template system into
cherrypy. Right now only Kid is supported, but I can add more without
much changes.

> That being said... this is your project, I'm just wasting your time with
> my $0.02 =)  I just wanted to offer the "other view" before you
> committed to something I personally find distasteful.

If you would waste my time, I would not answer to this. It is good to
have all sides of a story before using a specific system.

So based on all the ideas I suggest:

o A clean XML based API for kaa.canvas to do the basic stuff. No need
  to add any template code, but it should work with changed XML
  files, e.g. a similar xml file will be used on changes. So the
  canvas system has the same input as a web browser (XML)

o Add a generic template system to kaa.cherrypy and some higher level
  canvas code (maybe Freevo, maybe also kaa.canvas). The user can
  either 

  - create xml/html by himself

  - use one of the supported template systems (e.g. Kid _and_ Cheetah)


How does that sound?


Dischi

-- 
And now for something completely different.

Attachment: pgpzbRjBtL4VO.pgp
Description: PGP signature

Reply via email to