sass

package
v0.0.0-...-05ae0ce Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compile

func Compile(path string, opt *Options) (string, error)

Compile sass file to css file

func CompileString

func CompileString(source string, opt *Options) (string, error)

CompileString sass to css

Types

type Options

type Options struct {
	// Indented ...
	Indented bool

	// Color ...
	Color bool

	// Style ...
	Style OutputStyle

	// Verbose ...
	Verbose bool

	// LoadPaths ...
	LoadPaths []string

	// Charset This flag tells Sass never to emit a @charset declaration or a UTF-8 byte-order mark.
	// By default, or if --charset is passed, Sass will insert either a @charset declaration
	// (in expanded output mode) or a byte-order mark (in compressed output mode)
	// if the stylesheet contains any non-ASCII characters.
	Charset bool
}

type OutputStyle

type OutputStyle string
const (
	Expanded   OutputStyle = "expanded"
	Compressed OutputStyle = "compressed"
)

Directories

Path Synopsis
Package ast declares the types used to represent syntax trees for Go packages.
Package ast declares the types used to represent syntax trees for Go packages.
Package token defines constants representing the lexical tokens of the Go programming language and basic operations on tokens (printing, predicates).
Package token defines constants representing the lexical tokens of the Go programming language and basic operations on tokens (printing, predicates).

Jump to

Keyboard shortcuts

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