func main() {
	// Register the http routes
	http.RegisterRoutes(http.Route{
		Path:    "/hello/{name}",
		Handler: Hello,
	})

	// Add a simple template function to be used within templates
	view.RegisterGlobalTemplateFuncs(template.FuncMap{
		"UppercaseFirstLetter": func(s string) string {
			return strings.Title(strings.ToLower(s))
		},
	})

	// Indicate where the base HTML templates are located
	view.SetLayoutDirectory("examples/website/view/layout")

	// Error responses should be turned into HTML
	errors.UseMarkupErrorsWithLayout("layout", "examples/website/view/error.gohtml")

	// Start the server
	log.Info("Starting service")
	http.ServeHttp(":8080")
}
/*
 * This is a simple website which demos most of the functionality available within this framework
 */
This is a simple website which demos most of the functionality available within this framework
/ * * This is a simple website which demos most of the functionality available within this framework * /
func main() {
	http.RegisterRoutes(http.Route{
		Path:    "/hello/{name}",
		Handler: Hello,
	})
	view.RegisterGlobalTemplateFuncs(template.FuncMap{
		"UppercaseFirstLetter": func(s string) string {
			return strings.Title(strings.ToLower(s))
		},
	})
	view.SetLayoutDirectory("examples/website/view/layout")
	errors.UseMarkupErrorsWithLayout("layout", "examples/website/view/error.gohtml")
	log.Info("Starting service")
	http.ServeHttp(":8080")
}
func main ( ) { http . RegisterRoutes ( http . Route { Path : " " , Handler : Hello , } ) view . RegisterGlobalTemplateFuncs ( template . FuncMap { " " : func ( s string ) string { return strings . Title ( strings . ToLower ( s ) ) } , } ) view . SetLayoutDirectory ( " " ) errors . UseMarkupErrorsWithLayout ( " " , " " ) log . Info ( " " ) http . ServeHttp ( " " ) }
This is a simple website which demos most of the functionality available within this framework
This is a simple website which demos most of the functionality available within this framework
// Register the http routes // Add a simple template function to be used within templates // Indicate where the base HTML templates are located // Error responses should be turned into HTML // Start the server