Permalink
Browse files

more attributes

  • Loading branch information...
1 parent 64675c0 commit 8c049d9dd0c396a59c8f315852a7c0cac801b87d @daaku committed Oct 5, 2012
Showing with 11 additions and 9 deletions.
  1. +11 −9 tags.go
View
20 tags.go
@@ -158,15 +158,16 @@ func (t *Img) HTML() (HTML, error) {
}
type Input struct {
- ID string `h:"attr"`
- Class string `h:"attr"`
- Name string `h:"attr"`
- Style string `h:"attr"`
- Type string `h:"attr"`
- Value string `h:"attr"`
- Placeholder string `h:"attr"`
- Checked bool `h:"attr"`
- Inner HTML `h:"inner"`
+ ID string `h:"attr"`
+ Class string `h:"attr"`
+ Name string `h:"attr"`
+ Style string `h:"attr"`
+ Type string `h:"attr"`
+ Value string `h:"attr"`
+ Placeholder string `h:"attr"`
+ Checked bool `h:"attr"`
+ Data map[string]interface{} `h:"dict"`
+ Inner HTML `h:"inner"`
}
func (i *Input) HTML() (HTML, error) {
@@ -251,6 +252,7 @@ func (d *Pre) HTML() (HTML, error) {
type Script struct {
Src string `h:"attr"`
+ Async bool `h:"attr"`
Inner HTML `h:"inner"`
}

0 comments on commit 8c049d9

Please sign in to comment.