Added formmethod attribute helper

This commit is contained in:
2019-05-29 20:01:37 -06:00
parent ae85431082
commit d24afba75c
3 changed files with 23 additions and 3 deletions

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{