entrypoint

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Path

type Path string

func (Path) Camel

func (p Path) Camel() string

func (Path) Error

func (path Path) Error() bool

func (Path) Ext

func (path Path) Ext() string

func (Path) Frame

func (path Path) Frame() bool

func (Path) Hash

func (path Path) Hash() (string, error)

func (Path) Layout

func (path Path) Layout() bool

func (Path) Pascal

func (p Path) Pascal() string

func (Path) Route

func (p Path) Route() string

func (Path) Type

func (path Path) Type() string

type View

type View struct {
	Page   Path   // Path to the page
	Type   string // View extension
	Route  string
	Frames []Path
	Layout Path
	Error  Path
	Client string
	Hot    string
}

func FindByClient

func FindByClient(fsys fs.FS, client string) (view *View, err error)

func FindByPage

func FindByPage(fsys fs.FS, page string) (view *View, err error)

func List

func List(fsys fs.FS, paths ...string) ([]*View, error)

List the views

func (*View) BrowserImports

func (v *View) BrowserImports() (imports []Path)

func (*View) ServerImports

func (v *View) ServerImports() (imports []Path)

Jump to

Keyboard shortcuts

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