func NewPageRender(c interface{}, before ...func()) Renderer {
	return &pageRender{c: c, before: before}
}
NewPageRender returns a render implementation for Page.
package render
import (
	"bytes"
	"fmt"
	"html/template"
	"io"
	"regexp"
	tpls "github.com/go-echarts/go-echarts/v2/templates"
)
type Renderer interface {
	Render(w io.Writer) error
}
const (
	ModChart = "chart"
	ModPage  = "page"
)
type pageRender struct {
	c      interface{}
	before []func()
}