12 lines
272 B
Go
12 lines
272 B
Go
package attribute
|
|
|
|
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: String(value),
|
|
}
|
|
}
|