Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type Component ¶
type Component struct {
Name string
HTML string
Style string
Script string
Type ComponentType
}
Component struct to store extracted content
func (Component) WrappedDynamicHTML ¶
func (Component) WrappedStaticHTML ¶
func (Component) WrappedStyle ¶
func (Component) WriteScript ¶
func (Component) WriteStyle ¶
type ComponentInfo ¶
type ComponentType ¶
type ComponentType uint8
type Settings ¶
type Settings struct {
Var map[string]any `json:"vars,omitempty"`
Commands map[string][]string `json:"commands,omitempty"`
OutputDir string `json:"output_dir,omitempty"`
InputDir string `json:"input_dir,omitempty"`
}
func (Settings) ScriptPath ¶
type TemplateData ¶
type TemplateData struct {
Settings
StylePaths []string
ScriptPaths []string
// contains filtered or unexported fields
}
func NewTemplateData ¶
func NewTemplateData(s Settings) *TemplateData
func (*TemplateData) AddComponent ¶
func (td *TemplateData) AddComponent(c Component) (err error)
func (*TemplateData) Build ¶
func (td *TemplateData) Build() chan error
func (*TemplateData) Walk ¶
func (td *TemplateData) Walk() (errch chan error)
func (TemplateData) WriteComponent ¶
func (td TemplateData) WriteComponent(c Component) (err error)
Click to show internal directories.
Click to hide internal directories.