package html5 //go:generate go run ../internal/codegen/codegen.go -input defs.json -output generated.go -package html5 import "gitlab.codemonkeysoftware.net/b/hatmill" // CustomData creates an attribute of the form data-suffix='value'. func CustomData(suffix, value string) hatmill.Attrib { return hatmill.Attrib{ Key: "data-" + suffix, Value: value, } } // Text converts a string to a hatmill.Text. Text(s) is functionally identical // to hatmill.Text(s) and is reproduced here for convenience. func Text(s string) hatmill.Text { return hatmill.Text(s) }