MCPcopy Create free account
hub / github.com/BryanMwangi/pine / ViewEngine

Interface ViewEngine

pine.go:22–24  ·  view source on GitHub ↗

ViewEngine is the interface every template backend must implement. Register an engine with Server.SetEngine(); the render package provides the built-in HTML engine via render.Setup().

Source from the content-addressed store, hash-verified

20// Register an engine with Server.SetEngine(); the render package provides the
21// built-in HTML engine via render.Setup().
22type ViewEngine interface {
23 Render(w io.Writer, name string, data interface{}) error
24}
25
26// Reloader is an optional extension of ViewEngine.
27// Engines that support hot-reloading implement this so RebuildViews() can

Callers 8

RenderMethod · 0.65
mainFunction · 0.65
mainFunction · 0.65

Implementers 2

Ctxpine.go
Enginerender/engine.go

Calls

no outgoing calls

Tested by

no test coverage detected