You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Generic handlers that make use of the Marten::Handlers::Rendering to render templates (like the Marten::Handlers::Template generic handler for example), should make it possible to easily configure the content type associated with the generated response containing the rendered template. By default, this content type should be text/html but it should be possible to override this by calling a dedicated class method.
Special care should be taken to ensure that this class method is added at the Marten::Handlers::Rendering concern level in order to ensure that all generic handlers including it also benefit from this capability.
The text was updated successfully, but these errors were encountered:
Description
Generic handlers that make use of the
Marten::Handlers::Rendering
to render templates (like theMarten::Handlers::Template
generic handler for example), should make it possible to easily configure the content type associated with the generated response containing the rendered template. By default, this content type should betext/html
but it should be possible to override this by calling a dedicated class method.The envisioned API is as follows:
Special care should be taken to ensure that this class method is added at the
Marten::Handlers::Rendering
concern level in order to ensure that all generic handlers including it also benefit from this capability.The text was updated successfully, but these errors were encountered: