Use rune param for Accesskey
This commit is contained in:
parent
e0ccb4549e
commit
141a1a3219
10
attribute/accesskey.go
Normal file
10
attribute/accesskey.go
Normal file
@ -0,0 +1,10 @@
|
||||
package attribute
|
||||
|
||||
import "gitlab.codemonkeysoftware.net/b/hatmill"
|
||||
|
||||
func Accesskey(value rune) hatmill.Attrib {
|
||||
return hatmill.Attrib {
|
||||
Key: "accesskey",
|
||||
Value: string([]rune{value}),
|
||||
}
|
||||
}
|
@ -22,14 +22,6 @@ func AcceptCharset(value string) hatmill.Attrib {
|
||||
}
|
||||
}
|
||||
|
||||
// Accesskey creates a "accesskey" attribute
|
||||
func Accesskey(value string) hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
Key: "accesskey",
|
||||
Value: value,
|
||||
}
|
||||
}
|
||||
|
||||
// Action creates a "action" attribute
|
||||
func Action(value string) hatmill.Attrib {
|
||||
return hatmill.Attrib{
|
||||
|
Loading…
Reference in New Issue
Block a user