Exemple #1
0
func do(appEnv *appEnv) error {
	handler, err := importserver.NewHandler(appEnv.TemplateDirPath, data.Data)
	if err != nil {
		return err
	}
	return pkghttp.GetAndListenAndServe(handler)
}
func newTestHandler() (http.Handler, error) {
	return importserver.NewHandler("template", data.Data)
}