12 lines
450 B
Markdown
12 lines
450 B
Markdown
|
# attribgen
|
||
|
|
||
|
attribgen reads simple descriptions of HTML element attributes from
|
||
|
`attribs.txt` and generates Go functions to create them. The file contains
|
||
|
one description per line. Each description is in the form
|
||
|
```
|
||
|
attribute-name attribute-type
|
||
|
```
|
||
|
where `attribute-name` is the lowercase name of the attribute, and
|
||
|
`attribute-type` is either `string` for normal attributes (e.g. `id`, 'style')
|
||
|
or `bool` for boolean attributes (e.g. `disabled`).
|