// Render 渲染 func (r *Renderer) Render(w io.Writer, name string, ctx vodka.Context) error { template, err := r.getTemplate(name) if err != nil { return err } err = template.ExecuteWriter(ctx.GetStore(), w) return err }