renderers library

Response renderers (JSON, HTML, redirects, etc.).

Import this when you want to render various response formats without bringing in the entire framework barrel.

Classes

DataRender
A class that implements the Render interface to handle rendering of data. This class is responsible for setting the content type and writing the data to the response.
HtmlRender
The HtmlRender class is responsible for rendering HTML content using a specified template and data. It implements the Render interface.
JsonRender
A class that implements the Render interface to render JSON data.
LiquidRoot
The LiquidRoot class implements the Root interface and is responsible for resolving template file paths and reading their contents.
LiquidTemplateEngine
ReaderRender
A class that implements the Render interface to handle rendering of a response using a stream of bytes.
RedirectRender
A class that implements the Render interface to handle HTTP redirects.
Render
The Render interface is designed to be implemented by various formats such as JSON, XML, HTML, etc. It provides a contract for rendering data to a response and writing the appropriate content type to the response headers.
StringRender
A class that implements the Render interface to render a string response.
TemplateEngine
XmlRender
A class that implements the Render interface to render data as XML.
YamlRender
A class that implements the Render interface to render data as YAML.