0
0
mirror of https://github.com/crazy-max/diun.git synced 2024-12-23 03:48:00 +00:00
crazy-max_diun/vendor/github.com/vanng822/go-premailer/premailer/options.go
2024-12-14 22:30:21 +01:00

19 lines
448 B
Go

package premailer
// Options for controlling behaviour
type Options struct {
// Remove class attribute from element
// Default false
RemoveClasses bool
// Copy related CSS properties into HTML attributes (e.g. background-color to bgcolor)
// Default true
CssToAttributes bool
}
// NewOptions return an Options instance with default value
func NewOptions() *Options {
options := &Options{}
options.CssToAttributes = true
return options
}