mirror of
https://github.com/crazy-max/diun.git
synced 2024-12-23 03:48:00 +00:00
19 lines
448 B
Go
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
|
|
}
|