svelte

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Compiler

type Compiler struct {
	VM  js.VM
	Dev bool
}

func Load

func Load(vm js.VM) (*Compiler, error)

func (*Compiler) DOM

func (c *Compiler) DOM(path string, code []byte) (*DOM, error)

Compile DOM code

func (*Compiler) SSR

func (c *Compiler) SSR(path string, code []byte) (*SSR, error)

Compile server-rendered code

type DOM

type DOM struct {
	JS  string
	CSS string
}

type SSR

type SSR struct {
	JS  string
	CSS string
}

Jump to

Keyboard shortcuts

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