lexers

package
v0.0.0-...-f903bf1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

else lexer use as if else

Index

Constants

View Source
const (
	StartSectionPattern   = `@section()`
	EndSectionPattern     = `@stop`
	SectionContentPattern = `@section\((.*)\)(.*)@stop`
)
View Source
const EchoPattern = `{{(.*)}}`
View Source
const ElsePattern = `@else`
View Source
const EndIfPattern = `@endif`
View Source
const ExtendsPattern = `@extends\((.*)\)`
View Source
const IfPattern = `@if\((.*)\)`
View Source
const YieldPattern = `@yield\((.*)\)`

Variables

This section is empty.

Functions

This section is empty.

Types

type Echo

type Echo struct{}

func (*Echo) Parse

func (e *Echo) Parse(context []byte) []byte

type Else

type Else struct{}

func (*Else) Parse

func (es *Else) Parse(context []byte) []byte

type EndIf

type EndIf struct{}

func (*EndIf) Parse

func (ei *EndIf) Parse(context []byte) []byte

type Extends

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

func (*Extends) Parse

func (ex *Extends) Parse(context []byte) []byte

type If

type If struct{}

func (*If) Parse

func (i *If) Parse(context []byte) []byte

type Layout

type Layout struct {
}

type Section

type Section struct{}

func (*Section) BlockContent

func (section *Section) BlockContent(context []byte) (string, []byte)

func (*Section) Parse

func (section *Section) Parse(context []byte) []byte

Jump to

Keyboard shortcuts

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