Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrComponentNotParsed = errors.New("transform must be called after parse")
ErrComponentNotParsed is returned when an attempt is made to Transform() a Component before calling Parse()
Functions ¶
func ProcessAll ¶
ProcessAll processes components starting at base
Types ¶
type Component ¶
type Component struct { Name string Template string Style string Package string Imports []string Struct bool UniqueID string // contains filtered or unexported fields }
A Component represents a web component in an HTML file
func (*Component) QuotedStyle ¶
func (*Component) QuotedTemplate ¶
func (*Component) TransformStyle ¶
func (c *Component) TransformStyle()
func (*Component) WriteImports ¶
type Transpiler ¶
type Transpiler struct {
// contains filtered or unexported fields
}
func NewTranspiler ¶
func NewTranspiler(r io.ReadCloser, createStruct bool, appPackage, componentName, packageName string) (*Transpiler, error)
func (*Transpiler) Code ¶
func (s *Transpiler) Code() string
Click to show internal directories.
Click to hide internal directories.