Rearranged generated code
This commit is contained in:
11
attribute/customdata.go
Normal file
11
attribute/customdata.go
Normal file
@ -0,0 +1,11 @@
|
||||
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: value,
|
||||
}
|
||||
}
|
29
attribute/generated.go
Normal file
29
attribute/generated.go
Normal file
@ -0,0 +1,29 @@
|
||||
// GENERATED BY gitlab.codemonkeysoftware.net/b/hatmill/internal/codegen
|
||||
// DO NOT EDIT!
|
||||
|
||||
package attribute
|
||||
|
||||
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
||||
|
||||
// Disabled creates a "disabled" attribute
|
||||
func Disabled() hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
Key: "disabled",
|
||||
}
|
||||
}
|
||||
|
||||
// Id creates a "id" attribute
|
||||
func Id(value string) hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
Key: "id",
|
||||
Value: value,
|
||||
}
|
||||
}
|
||||
|
||||
// Src creates a "src" attribute
|
||||
func Src(value string) hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
Key: "src",
|
||||
Value: value,
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user