package scss
import "github.com/bep/go-tocss/scss"
Package scss provides options for SCSS transpilers. Note that there are no current pure Go SASS implementation, so the only option is CGO and LibSASS. But hopefully, fingers crossed, this will happen.
Index ¶
Functions ¶
func OutputStyleToString ¶
func OutputStyleToString(style OutputStyle) string
Types ¶
type Error ¶
type Error struct { Status int `json:"status"` Column int `json:"column"` File string `json:"file"` Line int `json:"line"` Message string `json:"message"` }
func JSONToError ¶
func (Error) Error ¶
type Options ¶
type Options struct { // Default is nested. OutputStyle OutputStyle // Precision of floating point math. Precision int // File paths to use to resolve imports. IncludePaths []string // ImportResolver can be used to supply a custom import resolver, both to redirect // to another URL or to return the body. ImportResolver func(url string, prev string) (newURL string, body string, resolved bool) // Used to indicate "old style" SASS for the input stream. SassSyntax bool // Source map settings SourceMapFilename string SourceMapRoot string InputPath string OutputPath string SourceMapContents bool OmitSourceMapURL bool EnableEmbeddedSourceMap bool }
type OutputStyle ¶
type OutputStyle int
const ( NestedStyle OutputStyle = iota ExpandedStyle CompactStyle CompressedStyle )
func OutputStyleFromString ¶
func OutputStyleFromString(style string) OutputStyle
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
scss/libsass | Package libsass a SCSS transpiler to CSS using github.com/wellington/go-libsass/libs. |
- Version
- v0.6.0 (latest)
- Published
- Nov 14, 2018
- Platform
- linux/amd64
- Imports
- 3 packages
- Last checked
- 4 hours ago –
Tools for package owners.