ace-proxy – github.com/yosssi/ace-proxy Index | Files

package proxy

import "github.com/yosssi/ace-proxy"

Package proxy provides a proxy for the Ace template engine. The proxy caches the options for the Ace template engine so that you don't have to specify them every time calling the Ace APIs.

Index

Types

type Proxy

type Proxy struct {
	Opts *ace.Options
}

Proxy represents a proxy for the Ace template engine.

func New

func New(opts *ace.Options) *Proxy

New creates and returns a proxy.

func (*Proxy) Load

func (p *Proxy) Load(basePath, innerPath string, opts *ace.Options) (*template.Template, error)

Load calls the `Load` function of the Ace template engine.

Source Files

doc.go proxy.go

Version
v0.0.0-20141007072044-ecd9b785e602 (latest)
Published
Oct 7, 2014
Platform
js/wasm
Imports
2 packages
Last checked
now

Tools for package owners.