MCPcopy Index your code
hub / github.com/writefreely/writefreely / renderPage

Function renderPage

templates.go:182–188  ·  view source on GitHub ↗

renderPage retrieves the given template and renders it to the given io.Writer. If something goes wrong, the error is logged and returned.

(w io.Writer, tmpl string, data interface{})

Source from the content-addressed store, hash-verified

180// renderPage retrieves the given template and renders it to the given io.Writer.
181// If something goes wrong, the error is logged and returned.
182func renderPage(w io.Writer, tmpl string, data interface{}) error {
183 err := pages[tmpl].ExecuteTemplate(w, "base", data)
184 if err != nil {
185 log.Error("%v", err)
186 }
187 return err
188}
189
190func largeNumFmt(n int64) string {
191 return humanize.Comma(n)

Callers 2

handleViewInviteFunction · 0.85
handleViewLandingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected