(w *httputils.ResponseModifier, req *http.Request, dst io.Writer)
| 24 | } |
| 25 | |
| 26 | func (tmpl *templateString) ExpandVars(w *httputils.ResponseModifier, req *http.Request, dst io.Writer) (phase PhaseFlag, err error) { |
| 27 | if !tmpl.isTemplate { |
| 28 | _, err := asBytesBufferLike(dst).WriteString(tmpl.string) |
| 29 | return PhaseNone, err |
| 30 | } |
| 31 | |
| 32 | return ExpandVars(w, req, tmpl.string, dst) |
| 33 | } |
| 34 | |
| 35 | func (tmpl *templateString) ExpandVarsToString(w *httputils.ResponseModifier, r *http.Request) (string, PhaseFlag, error) { |
| 36 | if !tmpl.isTemplate { |
no test coverage detected