Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #379 (closed enhancement: fixed)

Opened 14 years ago

Last modified 12 years ago

SVG template support in turbogears.expose

Reported by: aaron.bentley@… Owned by: jorge.vargas
Priority: normal Milestone:
Component: Documentation Version:
Severity: normal Keywords:
Cc:

Description

Since kid can produce SVG, it would be nice if turbogears.expose supported this. Of course, it would be even more useful if the SVG could be rendered to PNG.

Change History

comment:1 Changed 13 years ago by gnarlpine@…

I second the request

comment:2 Changed 13 years ago by Matt Good <tg@…>

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  using XML instead of HTML provide an example with RSS, but it's easy to do with SVG as well:

@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.

comment:3 Changed 13 years ago by jorge.vargas

  • Owner changed from anonymous to jorge.vargas
  • Component changed from TurboGears to Docs

I'll add this as a second example

comment:4 Changed 13 years ago by jorge.vargas

  • Owner changed from anonymous to jorge.vargas
  • Component changed from TurboGears to Docs

I'll add this as a second example

comment:5 Changed 12 years ago by jorge.vargas

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.