pongo2

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type INodeImplied

type INodeImplied struct {
	Exec func(*p2.ExecutionContext, p2.TemplateWriter) *p2.Error
}

func (*INodeImplied) Execute

func (i *INodeImplied) Execute(ctx *p2.ExecutionContext, w p2.TemplateWriter) *p2.Error

type Pongo2BaseTag

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

func (*Pongo2BaseTag) GetField

func (node *Pongo2BaseTag) GetField(ctx *p2.ExecutionContext) (value interface{}, found bool)

type PongoEngine

type PongoEngine struct {
	CaseInsensitive bool
	// contains filtered or unexported fields
}

There is only a single instance of the PongoEngine initialized.

func (*PongoEngine) ConvertPath

func (engine *PongoEngine) ConvertPath(path string) string

func (*PongoEngine) Event

func (engine *PongoEngine) Event(action revel.Event, i interface{})

func (*PongoEngine) Handles

func (engine *PongoEngine) Handles(templateView *revel.TemplateView) bool

func (*PongoEngine) Lookup

func (engine *PongoEngine) Lookup(templateName string) revel.Template

func (*PongoEngine) Name

func (engine *PongoEngine) Name() string

func (*PongoEngine) ParseAndAdd

func (engine *PongoEngine) ParseAndAdd(baseTemplate *revel.TemplateView) error

type PongoTemplate

type PongoTemplate struct {
	*revel.TemplateView
	// contains filtered or unexported fields
}

Adapter for HAML Templates.

func (PongoTemplate) Name

func (tmpl PongoTemplate) Name() string

func (PongoTemplate) Render

func (tmpl PongoTemplate) Render(wr io.Writer, arg interface{}) (err error)

return a 'revel.Template' from HAML's template.

Jump to

Keyboard shortcuts

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