Added formmethod attribute helper

This commit is contained in:
b committed 2019-05-29 20:01:37 -06:00
1 parent ae85431082
commit d24afba75c
3 files changed
+23 -3

No files matched your search

+8
View File
@@ -270,6 +270,14 @@ func Formaction(value string) hatmill.Attrib {
}
}
// Formmethod creates a "formmethod" attribute
func Formmethod(value string) hatmill.Attrib {
return hatmill.Attrib{
Key: "formmethod",
Value: value,
}
}
// Headers creates a "headers" attribute
func Headers(value string) hatmill.Attrib {
return hatmill.Attrib{