Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrAlreadyWritten = errors.New("the buffer of this struct has already been written")
)
View Source
var (
ErrClassNotFound = errors.New("css modules class not found")
)
Functions ¶
func ProcessCSSModules ¶
Parses the CSS and returns the CSS processed, the key-value pair of the classes and scoped classes, and an error if there is one
Types ¶
type CSSModulesParser ¶ added in v0.1.0
type CSSModulesParser struct {
// contains filtered or unexported fields
}
func NewCSSModulesParser ¶ added in v0.1.0
func NewCSSModulesParser(css io.Reader) *CSSModulesParser
type HTMLCSSModulesParser ¶ added in v0.1.0
type HTMLCSSModulesParser struct {
// contains filtered or unexported fields
}
func NewHTMLCSSModulesParser ¶ added in v0.1.0
func NewHTMLCSSModulesParser(html io.Reader, scopedClasses map[string]string) *HTMLCSSModulesParser
Click to show internal directories.
Click to hide internal directories.