I continue to port my project from some old version of Turbogears to 2.4.
To generate RSS feed I've used webhelpers.feedgenerator which seems outdated. Newer WebHelpers2 have not built in feed generators and recommend to use Mako templates.
So my decision was to use Kajiki engine we already have to generate feed. The issue is Kajiki refuses to process this required xml part:
<?xml version="1.0" encoding="utf-8" ?>
on top of the template file with error
kajiki.xml_template.XMLTemplateParseError: [/home/uni/projects/cafealpha-tg23/venv/cafealpha/cafealpha/templates/rssfeed.xhtml:1] XML or text declaration not at start of entity
--> <!DOCTYPE kajiki SYSTEM "kajiki.dtd"><?xml version="1.0" encoding="utf-8" ?>
Setting first tag to <!DOCTYPE xml> doesn't help.
Does anyone know right way to generate RSS or Atom feed using latest TurboGears?