MCPcopy
hub / github.com/mudler/LocalAI / Render

Method Render

core/http/render.go:29–31  ·  view source on GitHub ↗

Render renders a template document

(w io.Writer, name string, data any, c echo.Context)

Source from the content-addressed store, hash-verified

27
28// Render renders a template document
29func (t *TemplateRenderer) Render(w io.Writer, name string, data any, c echo.Context) error {
30 return t.templates.ExecuteTemplate(w, name, data)
31}
32
33func notFoundHandler(c echo.Context) error {
34 // Check if the request accepts JSON

Callers 2

notFoundHandlerFunction · 0.45
PreloadMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected