package
1.1.0
Repository: https://github.com/gobuffalo/buffalo.git
Documentation: pkg.go.dev

# Functions

Auto figures out how to render the model based information about the request and the name of the model.
Download renders a file attachment automatically setting following headers: Content-Type Content-Length Content-Disposition Content-Type is set using mime#TypeByExtension with the filename's extension.
Func renderer allows for easily building one of renderers using just a RendererFunc and not having to build a whole implementation of the Render interface.
GoTemplateEngine implements the TemplateEngine interface for using standard Go templates.
HTML renders the named files using the 'text/html' content type and the github.com/gobuffalo/plush/v4 package for templating.
JavaScript renders the named files using the 'application/javascript' content type and the github.com/gobuffalo/plush package for templating.
JSON renders the value using the "application/json" content type.
MDTemplateEngine runs the input through github flavored markdown before sending it to the Plush engine.
New render.Engine ready to go with your Options and some defaults we think you might like.
NewEventSource returns a new EventSource instance while ensuring that the http.ResponseWriter is able to handle EventSource messages.
Plain renders the named files using the 'text/html' content type and the github.com/gobuffalo/plush package for templating.
String renderer that will run the string through the github.com/gobuffalo/plush package and return "text/plain" as the content type.
Template renders the named files using the specified content type and the github.com/gobuffalo/plush package for templating.
XML renders the value using the "application/xml" content type.

# Structs

Engine used to power all defined renderers.
ErrRedirect indicates to Context#Render that this is a redirect and a template shouldn't be rendered.
EventSource is designed to work with JavaScript EventSource objects.
Options for render.Engine.

# Interfaces

Renderer interface that must be satisfied to be used with buffalo.Context.Render.

# Type aliases

Data type to be provided to the Render function on the Renderer interface.
Helpers to be included in all templates.
RendererFunc is the interface for the the function needed by the Func renderer.
TemplateEngine needs to be implemented for a template system to be able to be used with Buffalo.