svelte

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 5 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
}

type Transformable

type Transformable = transform.Transformable

func NewTransformable

func NewTransformable(compiler *Compiler) *Transformable

Jump to

Keyboard shortcuts

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