#379: SVG template support in turbogears.expose
---------------------------------------+------------------------------------
Reporter: [EMAIL PROTECTED] | Owner: anonymous
Type: enhancement | Status: new
Priority: normal | Milestone:
Component: TurboGears | Version:
Severity: normal | Resolution:
Keywords: |
---------------------------------------+------------------------------------
Comment (by Matt Good <[EMAIL PROTECTED]>):
Well, you can already use TG and Kid to render SVG or any other XML format
if you set the format to "xml" and use the right content_type. The docs on
[http://www.turbogears.org/preview/docs/gs/othertemplate.html using XML
instead of HTML] provide an example with RSS, but it's easy to do with SVG
as well:
{{{
#!python
@expose(template="project.templates.svg",
content_type='image/svg+xml', format='xml')
}}}
I think Python's lacking in good SVG renderers at the moment, but I don't
really see that as a core TurboGears functionality.
--
Ticket URL: <http://trac.turbogears.org/turbogears/ticket/379>
TurboGears <http://www.turbogears.org/>
TurboGears front-to-back web development
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"TurboGears Tickets" 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/turbogears-tickets
-~----------~----~----~----~------~----~------~--~---