Documentation ¶
Index ¶
- Constants
- Variables
- func Error(format string, v ...interface{})
- func GetAssetFileHash(body *string) string
- func MinifyJavascript(body string) (string, error)
- func MinifyStylesheet(body string) (string, error)
- func SetAfterBuildCallback(asset_type AssetType, cb pre_afterBuildCallback)
- func SetAssetFileExtension(extension string, asset_type AssetType)
- func SetMinifyCallback(extension string, cb minifyFileCallback)
- func SetPreBuildCallback(asset_type AssetType, cb pre_afterBuildCallback)
- func SetPreLoadCallback(asset_type AssetType, cb preLoadCallback)
- func Warning(format string, v ...interface{})
- type Asset
- type AssetType
Constants ¶
View Source
const CSS_EXTENSION = ".css"
View Source
const CSS_EXTENSION_LEN = len(CSS_EXTENSION)
View Source
const JS_EXTENSION = ".js"
View Source
const JS_EXTENSION_LEN = len(JS_EXTENSION)
View Source
const PREFIX = "[ ASSET_PIPELINE ] "
Variables ¶
View Source
var Config assetPipelineConfig
View Source
var Logger = logs.NewLogger(10000)
Functions ¶
func GetAssetFileHash ¶
func MinifyJavascript ¶
func MinifyStylesheet ¶
func SetAfterBuildCallback ¶
func SetAfterBuildCallback(asset_type AssetType, cb pre_afterBuildCallback)
func SetAssetFileExtension ¶
func SetMinifyCallback ¶
func SetMinifyCallback(extension string, cb minifyFileCallback)
func SetPreBuildCallback ¶
func SetPreBuildCallback(asset_type AssetType, cb pre_afterBuildCallback)
func SetPreLoadCallback ¶
func SetPreLoadCallback(asset_type AssetType, cb preLoadCallback)
Types ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.