sassy

package module
v0.0.0-...-72214db Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2014 License: MIT, BSD-2-Clause, MIT Imports: 7 Imported by: 0

README

Sassy

Go language interface for the libsass library.

I was disappointed when the various sass libraries depended on libsass being built as a shared library, and being not really idiomatic Go. This library allows you to collect the scss files, compile them to css, then serve the files over http.

Missing Functionality

Sass formatted files may not be read at this point.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type File

type File struct {
	Source, Output string
	Filename       string
}

type FileSet

type FileSet struct {
	IncludeDir   []string
	Style        OutputStyle
	ShowComments bool
	// contains filtered or unexported fields
}

func (*FileSet) Parse

func (fs *FileSet) Parse(filename, content string) (*File, error)

func (*FileSet) ParseFile

func (fs *FileSet) ParseFile(filename string) (*File, error)

func (*FileSet) ServeHTTP

func (fs *FileSet) ServeHTTP(w http.ResponseWriter, r *http.Request)

type OutputStyle

type OutputStyle int
const (
	NestedStyle OutputStyle = iota
	ExpandedStyle
	CompactStyle
	CompressedStyle
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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