Rearranged generated code

This commit is contained in:
2019-04-02 21:42:16 -06:00
parent 94a7c075c7
commit e43b8aa6ee
9 changed files with 95 additions and 88 deletions

11
attribute/customdata.go Normal file
View 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
View 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,
}
}