Skip to content

struct Athena::Routing::Listeners::View
inherits Struct #

Listens on the ART::Events::View event to convert a non ART::Response into an ART::Response. Allows creating format agnostic controllers by allowing them to return format agnostic data that is later used to render the content in the expected format.

See the negotiation component for more information.

Included modules


Class methods#

.subscribed_events : AED::SubscribedEvents #

View source


#call(event : ART::Events::View, dispatcher : AED::EventDispatcherInterface) : Nil #

View source