func CreateHandler(config *Config) http.Handler {
	router := httprouter.New()
	router.RedirectTrailingSlash = false
	router.GET("/", indexHandler{config: config}.Handle)
	for name, pkg := range config.Packages {
		handle := packageHandler{
			pkgName: name,
			pkg:     pkg,
			config:  config,
		}.Handle
		router.GET(fmt.Sprintf("/%s", name), handle)
		router.GET(fmt.Sprintf("/%s/*path", name), handle)
	}
	return router
}
CreateHandler creates a Sally http.Handler
package main
import (
	"fmt"
	"html/template"
	"net/http"
	"github.com/julienschmidt/httprouter"
	"go.uber.org/sally/templates"
)
var (
	indexTemplate = template.Must(
		template.New("index.html").Parse(templates.Index))
	packageTemplate = template.Must(
		template.New("package.html").Parse(templates.Package))
)