asset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 16, 2015 License: MIT Imports: 5 Imported by: 1

Documentation

Overview

Package asset provides compression of CSS and JavaScript files.

Index

Constants

View Source
const (
	JS_COMPILATION_LEVEL_ADVANCED_OPTIMIZATIONS = "ADVANCED_OPTIMIZATIONS"
	JS_COMPILATION_LEVEL_SIMPLE_OPTIMIZATIONS   = "SIMPLE_OPTIMIZATIONS"
	JS_COMPILATION_LEVEL_WHITESPACE_ONLY        = "WHITESPACE_ONLY"
)

Compilation levels supported by Closure Compiler

Variables

This section is empty.

Functions

func CompileCss

func CompileCss(sourceFilenames []string, destinationFilename string, compilerArguments []string, resultChan, progressChan chan<- string, errorChan chan<- error)

CompileCss executes Closure Stylesheets to merge and compile all CSS code into a single file. The file is written to the webroot directory, its filename is a Unix timestamp in base 62.

func CompileJs

func CompileJs(sourceFilenames []string, destinationFilename string, jsCompilationLevel string, verbose bool, resultChan, progressChan chan<- string, errorChan chan<- error)

CompileJs executes Closure Compiler to merge and compile all JavaScript code into a single file. The file is written to the webroot directory, its filename is a Unix timestamp in base 62.

Types

This section is empty.

Jump to

Keyboard shortcuts

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