app

package
v0.0.0-...-96ffb46 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const ACE_TEMPLATE = "ace"

Variables

This section is empty.

Functions

This section is empty.

Types

type AceEngine

type AceEngine struct {
	Options         *ace.Options
	CaseInsensitive bool
	// contains filtered or unexported fields
}

func (*AceEngine) ConvertPath

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

func (*AceEngine) Event

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

func (*AceEngine) Handles

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

func (*AceEngine) Lookup

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

func (*AceEngine) Name

func (engine *AceEngine) Name() string

func (*AceEngine) ParseAndAdd

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

type AceTemplate

type AceTemplate struct {
	*template.Template

	*revel.TemplateView
	File  *ace.File
	Inner *ace.File
	// contains filtered or unexported fields
}

Adapter for Go Templates.

func (AceTemplate) Render

func (acetmpl AceTemplate) Render(wr io.Writer, arg interface{}) error

A bit trick of an implementation If the arg contains an ace_inner field then that will be used to fetch a new template.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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