Question about HTMLgen

Konstantin Veretennicov kveretennicov at gmail.com
Tue Jun 21 01:45:09 CEST 2005


On 6/20/05, Sebastian Bassi <sbassi at gmail.com> wrote:
> Hello,
> 
> I am using HTMLgen. It is very nice. But I can't make it to
> generate an arbitrary command.
> For example I want to output this:
> 
> <embed src="canvas_norelief.svg" width="140" height="68"
> type="image/svg+xml" name="wmap" wmode="transparent">

Works for me...

>>> d = HTMLgen.BasicDocument()
>>> d.append('<embed src="canvas_norelief.svg" ... >')
>>> print d
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<!-- This file generated using Python HTMLgen module. -->
<HEAD>
  <META NAME="GENERATOR" CONTENT="HTMLgen 2.2.2">
        <TITLE></TITLE> </HEAD>
<BODY>
<embed src="canvas_norelief.svg" ... >
</BODY> </HTML>

- kv



More information about the Python-list mailing list