Documentation
¶
Overview ¶
Package cssm provides scoped CSS for gomponents.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
Collector allows for using one or more rulesets, scoping them deterministically, caching those results, and provides helpers to access the scoped classnames. This is not safe for concurrent access.
func (*Collector) C ¶
func (c *Collector) C(rules string, className ...string) gomponents.Node
C returns a gomponents.Node that serves as the class attribute for all the provided class names.
Click to show internal directories.
Click to hide internal directories.