Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var NoopAssetPipeline = &noopAssetPipeline{ Handler: http.NotFoundHandler(), }
Functions ¶
func JavascriptTag ¶
func StylesheetTag ¶
Types ¶
type AssetDirectory ¶
type AssetDirectory struct {
// contains filtered or unexported fields
}
AssetDirectory is an AssetPipeline for a directory containing asssets
func NewAssetDirectory ¶
func NewAssetDirectory(path string) *AssetDirectory
func (*AssetDirectory) AssetContents ¶
func (s *AssetDirectory) AssetContents(filename string) (content []byte, err error)
func (*AssetDirectory) ServeHTTP ¶
func (s *AssetDirectory) ServeHTTP(w http.ResponseWriter, r *http.Request)
type AssetPipeline ¶
type AssetPipeline interface { http.Handler AssetUrl(name string) (string, error) AssetContents(name string) ([]byte, error) }
func Prefix ¶
func Prefix(prefix string, p AssetPipeline) AssetPipeline
Prefix returns an AssetPipeline that prefixes URLs with the given string
Click to show internal directories.
Click to hide internal directories.