Zejn Gasper wrote: > On Wednesday 11 October 2006 13:49, David Fraser wrote: > >> Zejn Gasper wrote: >> >>> On Tuesday 10 October 2006 18:22, Charl van Niekerk wrote: >>> >>>> If we can throw kid out of the door that would also be really nice >>>> IMHO because the installation of kid is somewhat complex since it has >>>> dependencies and requires hacks [1] to get it to run sometimes. >>>> >>> Yes, Kid templating will be replaced by Django's templates in near >>> future, hopefully. >>> >> You mean these: http://www.djangoproject.com/documentation/templates/ >> They look really ugly to my eye :-) >> > Why do you think they're ugly? Is there something specific or just the > general > look of it? To me, kid looks ugly. :) > Of course, ugly is all a matter of taste here :-) To me what stands out about Kid as being a helpful syntax is that it strikes a balance between being quite HTML-ish (so that you feel like you are actually writing a web page) and having some Pythonic idiom. > It has one feature that is both good and bad: it's not XML based. This means > you must take more care to output valid XML and you are not tied to XML > output, therefore it's easier to output text based formats, eg. CSV. > Oh, and it has inheritance unlike kid. > Yes I'd like to look into the inheritance stuff more... I've done some stuff to overlay inheritance on top of kid/Genshi. Genshi also has a text-based variant - but it uses a slightly different syntax to the XML one, which I think makes sense. >> I presume one can use Django without the templates... >> > Yes, Django tries not to tie you. You can use any other template language. > Good >> I'm currently switched from using Kid to using Genshi which implements >> almost the same syntax but much more cleanly: >> http://genshi.edgewall.org/ >> Switching Pootle to Genshi would probably involve only a few lines of >> code (change the import) >> > Hmm, nice. Is genshi already packaged for Debian? > Not sure, but its pure python so it can't be hard :-) I even have it running on Windows CE using PythonCE without any modifications (fun, fun)
Cheers David ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ Translate-pootle mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/translate-pootle
