gosvelte

package
v1.0.23 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 10, 2022 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(provideGoSvelte),
)

Functions

This section is empty.

Types

type Data

type Data map[string]interface{}

type GoSvelte

type GoSvelte struct {
	InternPublicPath    string `yaml:"internpublicpath"`
	ForwardPublicPath   string `yaml:"forwardpublicpath"`
	SvelteWorkspacePath string `yaml:"svelteworkspacepath"`
	SvelteOutputPath    string `yaml:"svelteoutputpath"`
	SvelteExtension     string `yaml:"svelteextension"`
}

func (*GoSvelte) Serve

func (goSvelteCfg *GoSvelte) Serve(w io.Writer, serveReq ServeReq) error

type ServeReq

type ServeReq struct {
	SvelteFileName          string
	SvelteOptionsTag        string
	HtmlGlobalLangAttribute string
	HtmlGlobalDirAttribute  string
	Title                   string
	Data                    Data
	HeadElements            template.HTML
	BodyTopElements         template.HTML
	BodyBottomElements      template.HTML
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL