// Package main shows how to parse a template through custom byte slice content. package main import "github.com/kataras/iris/v12" func main() { app := iris.New() // To not load any templates from files or embedded data, // pass nil or empty string on the first argument: // view := iris.HTML(nil, ".html") view := iris.HTML("./views", ".html") view.ParseTemplate("program.html", []byte(`