template

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const AND = 57359
View Source
const EQ = 57354
View Source
const EXPR_END = 57348
View Source
const EXPR_START = 57347
View Source
const GE = 57356
View Source
const IDENTIFIER = 57350
View Source
const IN = 57353
View Source
const LE = 57357
View Source
const NE = 57355
View Source
const NOT = 57360
View Source
const NUMBER = 57352
View Source
const OR = 57358
View Source
const RAW_EXPR_START = 57349
View Source
const STRING = 57351
View Source
const TEXT = 57346

Variables

View Source
var YyLexDebug = false //|| true

Functions

This section is empty.

Types

type NodesStack

type NodesStack []*node.HtmlElement

func (*NodesStack) Pop

func (s *NodesStack) Pop()

func (*NodesStack) Push

func (s *NodesStack) Push(n *node.HtmlElement)

func (*NodesStack) Top

func (s *NodesStack) Top() *node.HtmlElement

type SyntaxError

type SyntaxError struct {
	Filename string
	Line     int
	Message  string
}

func (*SyntaxError) Error

func (e *SyntaxError) Error() string

type Template

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

func Parse

func Parse(filename string, imageResolver func(string) string) (*Template, error)

func (*Template) GetContentNode

func (t *Template) GetContentNode() *node.SsrContent

func (*Template) GetVariables

func (t *Template) GetVariables() []Variable

func (*Template) WriteGoCode

func (t *Template) WriteGoCode(buf *gobuf.GoBuf)

type Variable

type Variable struct {
	File string
	Line int
	Name string
	Type string
}

func (*Variable) FilePos

func (v *Variable) FilePos() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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