hatmill/internal/attribgen
2019-03-21 22:28:04 -06:00
..
main.go Added attribute function generator and more element defs 2019-03-21 21:49:26 -06:00
README.md Documented code generators 2019-03-21 22:28:04 -06:00

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).