Added formmethod attribute helper
This commit is contained in:
@ -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