Documentation
¶
Index ¶
- Variables
- type BaseWebWrapper
- type CacheDOMOpts
- type JSWebWrapper
- type JSWebWrapperList
- type ReactWebWrapper
- func (s *ReactWebWrapper) Apply(page jsparse.JSDocument) (jsparse.JSDocument, error)
- func (s *ReactWebWrapper) DoesSatisfyConstraints(fileExtension string) bool
- func (s *ReactWebWrapper) NodeDependencies() map[string]string
- func (s *ReactWebWrapper) RequiredBodyDOMElements(ctx context.Context, cache *CacheDOMOpts) []string
- func (s *ReactWebWrapper) Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrComponentExport = errors.New("prefer capitalization for jsx components")
View Source
var ErrInvalidComponent = errors.New("invalid jsx component")
Functions ¶
This section is empty.
Types ¶
type BaseWebWrapper ¶
type BaseWebWrapper struct {
WebDir string
}
type CacheDOMOpts ¶
func (*CacheDOMOpts) CacheWebRequest ¶
func (c *CacheDOMOpts) CacheWebRequest(uris []string) ([]string, error)
type JSWebWrapper ¶
type JSWebWrapper interface { Apply(jsparse.JSDocument) (jsparse.JSDocument, error) NodeDependencies() map[string]string DoesSatisfyConstraints(string) bool Version() string RequiredBodyDOMElements(context.Context, *CacheDOMOpts) []string }
type JSWebWrapperList ¶
type JSWebWrapperList []JSWebWrapper
func NewActiveMap ¶
func NewActiveMap() JSWebWrapperList
func (*JSWebWrapperList) FirstMatch ¶
func (j *JSWebWrapperList) FirstMatch(fileExtension string) JSWebWrapper
FirstMatch finds the first js web wrapper in the currently list that satisfies the file extension constraints
type ReactWebWrapper ¶
type ReactWebWrapper struct {
*BaseWebWrapper
}
func (*ReactWebWrapper) Apply ¶
func (s *ReactWebWrapper) Apply(page jsparse.JSDocument) (jsparse.JSDocument, error)
func (*ReactWebWrapper) DoesSatisfyConstraints ¶
func (s *ReactWebWrapper) DoesSatisfyConstraints(fileExtension string) bool
func (*ReactWebWrapper) NodeDependencies ¶
func (s *ReactWebWrapper) NodeDependencies() map[string]string
func (*ReactWebWrapper) RequiredBodyDOMElements ¶
func (s *ReactWebWrapper) RequiredBodyDOMElements(ctx context.Context, cache *CacheDOMOpts) []string
func (*ReactWebWrapper) Version ¶
func (s *ReactWebWrapper) Version() string
Click to show internal directories.
Click to hide internal directories.