HTML Conversion in python

V

venutaurus539

Hello All,
Is there any library defined in Python which can convert a
given text file into a html page. Basically, I require functions for
creating tables or filling background colours for the html pages etc
instead of writing each and every tag in my script..

Thank you,
Venu Madhav.
 
G

Gabriel Genellina

En Mon, 13 Apr 2009 02:47:30 -0300, (e-mail address removed)
Is there any library defined in Python which can convert a
given text file into a html page. Basically, I require functions for
creating tables or filling background colours for the html pages etc
instead of writing each and every tag in my script..

You're looking for a templating engine -- see
http://wiki.python.org/moin/Templating
 
A

Aaron Watters

Hello All,
Is there any library defined in Python which can convert a
given text file into a html page. Basically, I require functions for
creating tables or filling background colours for the html pages etc
instead of writing each and every tag in my script..

Thank you,
Venu Madhav.

At the risk of being annoying, I just announced
a suite of tools that includes a methodology for
building complex pages by combining simple page fragments.

Please have a look at the tutorial
http://aaron.oirt.rutgers.edu/myapp/docs/W1100.tutorial

This is the configuration source for the tutorial page

{{use-url "comments"}}
{{section title}} Tutorial {{/section}}
{{section summary}}
Walking through some examples will help you learn
the organization and capabilities of the whiff
package.
{{/section}}
{{section body}}
These tutorials hope to introduce WHIFF by discussing a number
of use cases, beginning with simple ones and progressing to
examples
with greater complexity.
<p>
(UNDER CONSTRUCTION)
{{/section}}
{{/use-url}}

The page generated from this source is much
more complex than that (take a look). The
"comments" URL points to another WHIFF template
which defines the scaffolding for all WHIFF
documentation pages. The "comments" page in turn
uses other fragments and scaffoldings...

There are many other
HTML generation approaches as indicated by the
Wiki link previously. As far as I
know the WHIFF approach is the most "compositional".
Please correct me if I'm wrong.

Thanks, -- Aaron Watters

===
'To join the Guild I had to kill somebody,
cruelly, with no mercy, and without reason
-- so I killed the dwarf, because she was
really annoying anyway.'
-- World of Warfare talk, overheard.
 
K

kc.python

At the risk of being annoying, I just announced
a suite of tools that includes a methodology for
building complex pages by combining simple page fragments.

Please have a look at the tutorial
 http://aaron.oirt.rutgers.edu/myapp/docs/W1100.tutorial

This is the configuration source for the tutorial page

{{use-url "comments"}}
   {{section title}} Tutorial {{/section}}
   {{section summary}}
      Walking through some examples will help you learn
      the organization and capabilities of the whiff
      package.
   {{/section}}
   {{section body}}
      These tutorials hope to introduce WHIFF by discussing a number
      of use cases, beginning with simple ones and progressing to
examples
      with greater complexity.
      <p>
      (UNDER CONSTRUCTION)
   {{/section}}
{{/use-url}}

The page generated from this source is much
more complex than that (take a look).  The
"comments" URL points to another WHIFF template
which defines the scaffolding for all WHIFF
documentation pages.  The "comments" page in turn
uses other fragments and scaffoldings...

There are many other
HTML generation approaches as indicated by the
Wiki link previously.  As far as I
know the WHIFF approach is the most "compositional".
Please correct me if I'm wrong.

Thanks, -- Aaron Watters

===
'To join the Guild I had to kill somebody,
cruelly, with no mercy, and without reason
-- so I killed the dwarf, because she was
really annoying anyway.'
  -- World of Warfare talk, overheard.

cheetah module will be very use full for yours requirement.

http://www.cheetahtemplate.org/index.html

Easily HTML pages can be develoed.
We will create a temples for each HTML pages and HTML pages will be
generated.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,292
Messages
2,571,494
Members
48,183
Latest member
GarfieldBa

Latest Threads

Top