code: func compileTpl(paths ...string) {
  	locations := []string{}
  	var err error
  
  	for _, path := range paths {
  		pths, err := collectFiles(path)
  		if err != nil {
  			panic(err)
  		} else {
  			locations = append(locations, pths...)
  		}
  	}
  
  	tpl, err = template.ParseFiles(locations...)
  	if err != nil {
  		panic(err)
  	}
  }
docs: // compile templates on provided locations
  // method will panic if there is something wrong during template compilation
  // this is intended to be called on application startup