Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BuildFiles ¶
type BuildFiles struct { Js string Css esbuild.OutputFile Html string }
type GoactCompiler ¶
type GoactCompiler struct {
// contains filtered or unexported fields
}
func NewGoactCompiler ¶
func NewGoactCompiler(outDir string, workingDir string, injectCss bool, isDebug bool) *GoactCompiler
func (*GoactCompiler) Compile ¶
func (g *GoactCompiler) Compile(content string, layout string, props string, baseHtmlLayout string, renderData RenderData, defaultRenderData RenderData) (string, error)
type GoactEngine ¶
type GoactEngine struct {
// contains filtered or unexported fields
}
func CreateGoactEngine ¶
func CreateGoactEngine(opts *GoactEngineOpts) *GoactEngine
func (GoactEngine) Load ¶
func (v GoactEngine) Load() error
type GoactEngineOpts ¶
type GoactEngineOpts struct { // The output directory for all the generated files OutputDir string // The root directory of the views WorkingDir string // This toggles minification of the generated files IsDebug bool // Location of structs used to pass props to the template StructPath string // The output of the auto-gen typescript types TsTypeOutputPath string // The base layout to use for rendering (This is optional, if you want a custom one make sure it matches the default) HtmlBaseLayout string // This is the default data to pass to the template on render if not provided in the render function DefaultRenderData RenderData // To stop the engine from injecting the generated CSS directly into the page (If you have a postprocess step) InjectCss bool }
type RenderData ¶
Click to show internal directories.
Click to hide internal directories.