Rest
Rest copied to clipboard
Routine for view rendering
A routine that can map routes to specific rendering engines (such as template engines or serializers).
This should be done by the conneg routine shouldn't?
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?