Hi,
Sorry this is not a strict Pylons question, but I've got no answer
from the Genshi group for 2 days.
Question: How to dynamically include non-file templates in Genshi?
This is my master template --
"""
<?xml version="1.0" encoding="utf-8"?>
<html xmlns="..." xmlns:py="..." xmlns:xi="...">
<head />
<body>
<py:for each="widget_template in widget_templates">
<xi:include href="[How to include widget_template here?]" />
</py:for>
</body>
</html>
"""
where widget_template is a _string_ retrieved from a database --
"""
<?xml version="1.0" encoding="utf-8"?>
<div xmlns="..." xmlns:py="..." py:strip="True">
<div>
<a href="${h.url_for(controller='...', action='...', id='...')}">
widget
</a>
</div>
</div>
"""
Any pointer will be greatly appreciated.
Many thanks in advance!
Jerry
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"pylons-discuss" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/pylons-discuss?hl=en
-~----------~----~----~----~------~----~------~--~---