Respect / Rest

Thin controller for RESTful applications
http://respect.github.io/Rest
Other
605 stars 102 forks source link

Routine for view rendering #19

Open alganet opened 12 years ago

alganet commented 12 years ago

A routine that can map routes to specific rendering engines (such as template engines or serializers).

augustohp commented 12 years ago

This should be done by the conneg routine shouldn't?

ramsey commented 12 years ago

Content negotiation is the preferred way of doing this, IMO, but I suppose if the request is for .html or .json or .xml, then regardless of the Accept header, we could use a routine map to return the proper content type for the extension?