Added formmethod attribute helper
This commit is contained in:
1 parent
ae85431082
commit
d24afba75c
3 files changed
+23
-3
No files matched your search
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user