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
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
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
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
> >
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
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
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
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
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
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
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
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
"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
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
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,
>>
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
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
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
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
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,
>>
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
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
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
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
24 matches
Mail list logo