goassets

package module
v0.0.0-...-e718a30 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2014 License: MIT Imports: 5 Imported by: 0

README

goassets

goassets for beego web framework

Documentation

Index

Constants

View Source
const (
	DefaultScriptTemplate = "<script src=\"%s?ver=%s\"></script>\r\n"
	DefaultCssTemplate    = "<link type=\"text/css\" rel=\"stylesheet\" href=\"%s?ver=%s\">\r\n"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type AssetAggregator

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

func (*AssetAggregator) Aggregate

func (this *AssetAggregator) Aggregate(nameOrPath string) (string, error)

func (*AssetAggregator) Init

func (this *AssetAggregator) Init(assetNameRegex string, assetFormat string)

type GoAssets

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

func NewCustomGoAssets

func NewCustomGoAssets(jsAggregator IAggregator, cssAggregator IAggregator) *GoAssets

func NewGoAssets

func NewGoAssets() *GoAssets

func (*GoAssets) IncludeCss

func (this *GoAssets) IncludeCss(nameOrPath string) template.HTML

func (*GoAssets) IncludeJs

func (this *GoAssets) IncludeJs(nameOrPath string) template.HTML

func (*GoAssets) Init

func (this *GoAssets) Init(jsAggregator IAggregator, cssAggregator IAggregator)

type IAggregator

type IAggregator interface {
	Aggregate(nameOrPath string) (string, error)
}

func NewAssetAggregator

func NewAssetAggregator(assetNameRegex string, assetTemplate string) IAggregator

func NewCssAggregator

func NewCssAggregator() IAggregator

func NewJsAggregator

func NewJsAggregator() IAggregator

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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