Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var EOT = es.New("end of tag")
Functions ¶
func ComponentName ¶
func GeneratedGoFileName ¶
func SanitizedName ¶
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
func (*Transpiler) Code ¶
func (s *Transpiler) Code() string
Click to show internal directories.
Click to hide internal directories.