class

Marten::Handlers::Template

Inherits Marten::Handlers::Rendering < Marten::Handlers::Base < Marten::Handlers::XFrameOptions < Marten::Handlers::XContentTypeOptions < Marten::Handlers::CrossOriginOpenerPolicy < Marten::Handlers::ContentSecurityPolicy < Marten::Handlers::Session < Marten::Handlers::RequestForgeryProtection < Marten::Handlers::Flash < Marten::Handlers::Cookies < Marten::Handlers::ExceptionHandling < Marten::Handlers::Callbacks < Marten::Core::DebugModeLoggable < Reference < Object

Handler allowing to respond to GET requests with the content of a rendered HTML template.

Class methods

content_type

Returns the configured content type.

template_name

Returns the configured template name.

Instance methods

get

Handles a GET HTTP request and returns a Marten::HTTP::Response object.

The default implementation will return a 405 (not allowed) response.

Source