Rearranged generated code
This commit is contained in:
1 parent
94a7c075c7
commit
e43b8aa6ee
9 files changed
+95
-88
No files matched your search
@@ -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,
|
||||
}
|
||||
}
|
||||
@@ -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