Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
28 lines (25 sloc) 947 Bytes
package render
// Plain renders the named files using the 'text/html'
// content type and the github.com/gobuffalo/plush
// package for templating. If more than 1 file is provided
// the second file will be considered a "layout" file
// and the first file will be the "content" file which will
// be placed into the "layout" using "<%= yield %>".
func Plain(names ...string) Renderer {
e := New(Options{})
return e.Plain(names...)
}
// Plain renders the named files using the 'text/plain'
// content type and the github.com/gobuffalo/plush
// package for templating. If more than 1 file is provided
// the second file will be considered a "layout" file
// and the first file will be the "content" file which will
// be placed into the "layout" using "<%= yield %>".
func (e *Engine) Plain(names ...string) Renderer {
hr := &templateRenderer{
Engine: e,
contentType: "text/plain; charset=utf-8",
names: names,
}
return hr
}
You can’t perform that action at this time.