MCPcopy Create free account
hub / github.com/dave/blast / render

Method render

blaster/template.go:122–129  ·  view source on GitHub ↗
(data map[string]string)

Source from the content-addressed store, hash-verified

120}
121
122func (t templateR) render(data map[string]string) (interface{}, error) {
123 buf := &bytes.Buffer{}
124 err := t.Execute(buf, data)
125 if err != nil {
126 return nil, errors.WithStack(err)
127 }
128 return buf.String(), nil
129}
130
131type native interface{}
132

Callers

nothing calls this directly

Calls 1

StringMethod · 0.45

Tested by

no test coverage detected