module

Marten::Handlers::Rendering

Provides the ability to generate HTTP responses with the content of rendered templates.

Instance methods

content_type

Returns the content type of the response.

Source
render_to_response(context : Hash | NamedTuple | Nil | Marten::Template::Context = nil, status : ::HTTP::Status | Int32 = 200)

Renders the configured template for a specific context object and produces an HTTP response.

Source
template_name

Returns the template name that should be rendered by the handler.

Source

Nested types