Documentation ¶
Overview ¶
Package sprockets integrates the power of sprockets ( http://getsprockets.org ) with your go program.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCompiledAssetDirectory ¶
func NewCompiledAssetDirectory(path string) (assets.AssetPipeline, error)
Types ¶
type CompiledAssetDirectory ¶
type CompiledAssetDirectory struct {
// contains filtered or unexported fields
}
CompiledAssetDirectory is an AssetPipeline for a directory containing compiled assets and a sprockets manifest.json file
func (*CompiledAssetDirectory) AssetContents ¶
func (s *CompiledAssetDirectory) AssetContents(name string) (content []byte, err error)
func (*CompiledAssetDirectory) AssetUrl ¶
func (s *CompiledAssetDirectory) AssetUrl(name string) (url string, err error)
func (*CompiledAssetDirectory) ServeHTTP ¶
func (s *CompiledAssetDirectory) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SprocketsServer ¶
SprocketsServer is an implementation of AssetPipeline that uses an external Sprockets server for compiling assets on demand
func NewSprocketsServer ¶
func NewSprocketsServer(target *url.URL) (*SprocketsServer, error)
NewSprocketsServer creates a Sprockets asset pipeline
func (*SprocketsServer) AssetContents ¶
func (s *SprocketsServer) AssetContents(name string) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.