github.com/egonelbre/exp@v0.0.0-20240430123955-ed1d3aa93911/htmlrender/dom/error.go (about) 1 package dom 2 3 type Error struct{ Err error } 4 5 func (err Error) Render(w Writer) { 6 w.Open("div") 7 w.Attr("class", "template-compilation-error") 8 w.Text("Compilation error " + err.Err.Error()) 9 w.Close("div") 10 }