compiler

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: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CompiledView

type CompiledView struct {
	Name    string
	CSS     []byte
	CSSHash string
	DOM     []byte
	DOMHash string
	SSR     []byte
	SSRHash string
}

type Compiler

type Compiler struct {
	// contains filtered or unexported fields
}

func NewCompiler

func NewCompiler(dir string) (*Compiler, error)

func (*Compiler) Compile

func (c *Compiler) Compile() ([]*CompiledView, error)

type SSRCSS

type SSRCSS struct {
	Code string `json:"code"`
}

type SSRResult

type SSRResult struct {
	HTML string `json:"html"`
	CSS  SSRCSS `json:"css"`
	HEAD string `json:"head"`
}

Jump to

Keyboard shortcuts

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