Re: Generating HTML

2013-07-29 Thread Burak Arslan
Hi, On 07/29/13 14:41, Morten Guldager wrote: > Something like: > table_struct = ['table', ['tr', ['td', {class=>"red"}, "this is > red"],['td', {class=>"blue"}, "this is not red"]]] > html = struct2html(table_struct) > > Suggestions? > See: http://lxml.de/lxmlhtml.html#creating-html-with-the

Re: Generating HTML

2007-09-13 Thread Nikita the Spider
In article <[EMAIL PROTECTED]>, "Sebastian Bassi" <[EMAIL PROTECTED]> wrote: > Hello, > > What are people using these days to generate HTML? I still use > HTMLgen, but I want to know if there are new options. I don't > want/need a web-framework a la Zope, just want to produce valid HTML > from P

Re: Generating HTML

2007-09-12 Thread w . greg . phillips
On Sep 12, 1:16 pm, Evan Klitzke <[EMAIL PROTECTED]> wrote: > Can you compile Mako templates? This is one thing that I really like > about Cheetah, and it wasn't clear to me from the Mako site if this is > possible. First line of the Mako home page: """Mako is a template library written in Python

Re: Generating HTML

2007-09-12 Thread Evan Klitzke
On Wed, 2007-09-12 at 09:54 +0200, Bruno Desthuilliers wrote: > Evan Klitzke a écrit : > > It's not applicable for everything, but if you're planning on using > > Python to generate web pages you should really be using Cheetah > > templates. Very simple to use template system that is also very > >

Re: Generating HTML

2007-09-12 Thread Jon Rosebaugh
On 2007-09-11 23:33:18 -0500, "Sebastian Bassi" <[EMAIL PROTECTED]> said: > Hello, > > What are people using these days to generate HTML? I still use > HTMLgen, but I want to know if there are new options. I don't > want/need a web-framework a la Zope, just want to produce valid HTML > from Pyth

Re: Generating HTML

2007-09-12 Thread Stefan Behnel
Sebastian Bassi wrote: > What are people using these days to generate HTML? I still use > HTMLgen, but I want to know if there are new options. I don't > want/need a web-framework a la Zope, just want to produce valid HTML > from Python. There's also lxml.html, which has straight forward support f

Re: Generating HTML

2007-09-12 Thread Walter Dörwald
Sebastian Bassi wrote: > Hello, > > What are people using these days to generate HTML? I still use > HTMLgen, but I want to know if there are new options. I don't > want/need a web-framework a la Zope, just want to produce valid HTML > from Python. If you want something that works similar to HTM

Re: Generating HTML

2007-09-12 Thread jkn
I used to use Cheetah, but have switched recently to Jinja: http://jinja.pocoo.org/ Mainly this is because the syntax is similar to Django's templates, and eventually I plan on migrating to Django. jon N -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating HTML

2007-09-12 Thread Diez B. Roggisch
Sebastian Bassi wrote: > Hello, > > What are people using these days to generate HTML? I still use > HTMLgen, but I want to know if there are new options. I don't > want/need a web-framework a la Zope, just want to produce valid HTML > from Python. KID, Genshi, Mako. And a bazillion others. I pr

Re: Generating HTML

2007-09-12 Thread Bruno Desthuilliers
Evan Klitzke a écrit : > On Wed, 2007-09-12 at 01:33 -0300, Sebastian Bassi wrote: >> Hello, >> >> What are people using these days to generate HTML? I still use >> HTMLgen, but I want to know if there are new options. I don't >> want/need a web-framework a la Zope, just want to produce valid HTML

Re: Generating HTML

2007-09-12 Thread Evan Klitzke
On Wed, 2007-09-12 at 01:33 -0300, Sebastian Bassi wrote: > Hello, > > What are people using these days to generate HTML? I still use > HTMLgen, but I want to know if there are new options. I don't > want/need a web-framework a la Zope, just want to produce valid HTML > from Python. It's not appl

Re: Generating HTML from python

2005-06-14 Thread Magnus Lycka
Philippe C. Martin wrote: > I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have > a title followed by lines of text that do not look too ugly. If possible I > would like to use an existing module. How to do this really depends on what your data looks like, and how you get

Re: Generating HTML from python

2005-06-10 Thread Roger Binns
"Philippe C. Martin" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have > a title

Re: Generating HTML from python

2005-06-10 Thread Philippe C. Martin
PS: Just wanted to add that HTMLGen works very well and outputs html that wxHtmlEasyPrinting and my email client have not problem reading (I output student grades, missing assignments, ... in tables). The one gitch is they do not have any installation program (that I've seen) for windows. Regards

Re: Generating HTML from python

2005-06-10 Thread Philippe C. Martin
Thanks Walter Dörwald wrote: > Cappy2112 wrote: >> I looked at HTMLGen a while ago- I didn't see what the advantage was. >> I wrote soem code similar to the example above, to generate a page.. >> It worked out fine. >> >> However, I want to add HTML ouput to many of my other python programs, >>

Re: Generating HTML from python

2005-06-10 Thread =?ISO-8859-1?Q?Walter_D=F6rwald?=
Cappy2112 wrote: > I looked at HTMLGen a while ago- I didn't see what the advantage was. > I wrote soem code similar to the example above, to generate a page.. > It worked out fine. > > However, I want to add HTML ouput to many of my other python programs, > and I don't want to re-write this for e

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Thanks Kent Johnson wrote: > Philippe C. Martin wrote: >> Hi, >> >> I wish to use an easy way to generate reports from wxPython and feel >> wxHtmlEasyPrinting could be a good solution. >> >> I now need to generate the HTML wxHtmlEasyPrinting can print: I need to >> have a title followed by line

Re: Generating HTML from python

2005-06-09 Thread Kent Johnson
Philippe C. Martin wrote: > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need to generate the HTML wxHtmlEasyPrinting can print: I need to have > a title followed by lines of text that do not look too ugly. I

Re: Generating HTML from python

2005-06-09 Thread Cappy2112
I looked at HTMLGen a while ago- I didn't see what the advantage was. I wrote soem code similar to the example above, to generate a page.. It worked out fine. However, I want to add HTML ouput to many of my other python programs, and I don't want to re-write this for each program. So some higher

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
Thanks a bunch, I'm currently playing with HTMLGen (great but not in Python distrib ...) and it look very good - Yet your code example looks simple enough for me to look at that alternative. Thomas Guettler wrote: > Am Thu, 09 Jun 2005 12:43:19 + schrieb Philippe C. Martin: > >> Hi, >>

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
I'll take a pick thanks - I like the fact it's buit-in (no extra installation) Michele Simionato wrote: > You could generate your report in reStructuredText > format (Google is your friend) and then convert > them in HTML, PS, PDF, etc. > > Michele Simionato -- http://mail.python.o

Re: Generating HTML from python

2005-06-09 Thread Thomas Guettler
Am Thu, 09 Jun 2005 12:43:19 + schrieb Philippe C. Martin: > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need to generate the HTML wxHtmlEasyPrinting can print I don't know wxPython, but generating HTM

Re: Generating HTML from python

2005-06-09 Thread Michele Simionato
You could generate your report in reStructuredText format (Google is your friend) and then convert them in HTML, PS, PDF, etc. Michele Simionato -- http://mail.python.org/mailman/listinfo/python-list

Re: Generating HTML from python

2005-06-09 Thread Philippe C. Martin
PS: I am looking at the formatter module which seems to be related to HTML somehow, but without any code sample I'm a bit lost Philippe C. Martin wrote: > Hi, > > I wish to use an easy way to generate reports from wxPython and feel > wxHtmlEasyPrinting could be a good solution. > > I now need