Documentation
¶
Index ¶
- func BorderParser(border string) int
- func BuildFontsTags(w io.StringWriter, content string, inlineStyles []string, ...) error
- func BuildMediaQueriesTags(w io.StringWriter, breakpoint string, mediaQueries *parser.Attributes, ...) error
- func BuildPreview(w io.StringWriter, content string) error
- func BuildStyleFromComponents(w io.StringWriter, breakpoint string, ...) error
- func BuildStyleFromTags(w io.StringWriter, breakpoint string, styles []string) error
- func ConditionalTagEnd(w io.StringWriter, negation bool) (int, error)
- func ConditionalTagStart(w io.StringWriter, negation bool) (int, error)
- func FormatAttributes(attributes *orderedmap.OrderedMap[string, string], ...) *orderedmap.OrderedMap[string, string]
- func GenRandomHexString(length int) string
- func MakeLowerBreakpoint(breakpoint string) string
- func MergeOutlookConditionals(content string) string
- func MinifyOutlookConditionals(content string) string
- func MsoConditionalTagStart(w io.StringWriter, negation bool) (int, error)
- func ParseFloatLoose(s string) (float64, error)
- func ParseIntLoose(s string) (int, error)
- func ShorthandParser(cssValue string, direction string) int
- func SuffixCssClasses(classes, suffix string) string
- func TrimNumber(s string) string
- func WidthParser(width string, parseFloatToInt bool) (float64, string)
- type FontDeclaration
- type MediaQueriesOptions
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BorderParser ¶
func BuildFontsTags ¶
func BuildFontsTags(w io.StringWriter, content string, inlineStyles []string, fontDeclarations []*FontDeclaration) error
func BuildMediaQueriesTags ¶
func BuildMediaQueriesTags(w io.StringWriter, breakpoint string, mediaQueries *parser.Attributes, options MediaQueriesOptions) error
func BuildPreview ¶
func BuildPreview(w io.StringWriter, content string) error
func BuildStyleFromTags ¶
func BuildStyleFromTags(w io.StringWriter, breakpoint string, styles []string) error
func ConditionalTagEnd ¶
func ConditionalTagEnd(w io.StringWriter, negation bool) (int, error)
func ConditionalTagStart ¶
func ConditionalTagStart(w io.StringWriter, negation bool) (int, error)
func FormatAttributes ¶
func FormatAttributes(attributes *orderedmap.OrderedMap[string, string], allowedAttributes map[string]string) *orderedmap.OrderedMap[string, string]
func GenRandomHexString ¶
func MakeLowerBreakpoint ¶
func MergeOutlookConditionals ¶
OPTIMIZE ME: — check if previous conditionnal is `<!--[if mso | I`]>` too ¶
func MsoConditionalTagStart ¶
func MsoConditionalTagStart(w io.StringWriter, negation bool) (int, error)
func ParseFloatLoose ¶
func ParseIntLoose ¶
func ShorthandParser ¶
func SuffixCssClasses ¶
func TrimNumber ¶
Types ¶
type FontDeclaration ¶
type MediaQueriesOptions ¶
Click to show internal directories.
Click to hide internal directories.