Commit graph

1 commit

Author SHA1 Message Date
hashworks
0739404bd6
Add ability to set CSS classes instead of inline styles
This allows to set a `ClassName` field in `Style` structs. Setting this
field to anything but "" will cause all other styles to be ignored. The
element will then have a `class=` tag instead with the corresponding name.

Possible reasons to use this:
* Including multiple SVGs on the same webside, using the same styles
* Desire to use strict CSP headers
2018-09-24 22:46:24 +02:00