view

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2025 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Finder

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

Find view files on the filesystem. This struct is based on the Illuminate\View\FileViewFinder class from laravel source.

func NewFinder

func NewFinder(fs afero.Fs) *Finder

func (*Finder) AddLocation

func (finder *Finder) AddLocation(path string)

func (Finder) Extensions

func (finder Finder) Extensions() []string

func (Finder) Find

func (finder Finder) Find(name string) (string, bool)

Get the fully qualified location of the view. Returns false if no location is found.

func (Finder) Paths

func (finder Finder) Paths() []string

func (Finder) PossibleFiles

func (finder Finder) PossibleFiles(name string) []string

Returns all possible files for a given view name.

func (*Finder) RegisterExtensions

func (finder *Finder) RegisterExtensions(extensions ...string)

func (Finder) Search

func (finder Finder) Search(input string) []View

Lists all view files containing the input string in their name.

type View

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

Struct to represent a view file.

func NewView

func NewView(path, name string) *View

func (View) Name

func (v View) Name() string

func (View) Path

func (v View) Path() string

func (*View) SetPath

func (v *View) SetPath(path string) *View

Jump to

Keyboard shortcuts

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