hasgeek / nodular

Reusable content objects for HasGeek apps
http://nodular.readthedocs.org/
BSD 2-Clause "Simplified" License
1 stars 0 forks source link

NodeView.render_template decorator needed #6

Closed jace closed 11 years ago

jace commented 11 years ago

The render_template decorator renders the result of the wrapped function with the specified template. When the request indicates a JSON response is required, it returns the result as a JSON object.

render_template also accepts a dictionary of mime-types and templates and will pick the appropriate template.