<?python not working
Bug #588938 reported by
ChrisW
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Chamelon Core |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
With the reference implementation of genshi you can do the following:
>>> from genshi.template import MarkupTemplate
>>> tmp = MarkupTemplate("""\
... <?python
... title = "A Genshi Template"
... ?>
... <html xmlns:py="http://
... <head>
... <title py:content=
... </head>
... </html>
... """)
>>> stream = tmp.generate()
>>> print stream.
<html>
<head>
<title>A Genshi Template</title>
</head>
</html>
The same doesn't work in chameleon.genshi.
The attached patch adds a failing test that demonstrates this.
To post a comment you must log in.
This hasn't been implemented yet, but I agree that it should.