Documentation
¶
Overview ¶
Package gassfile provides support for the 'gassfile': a file containing a list of SCSS sources to transpile to CSS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ( // ErrInvalidSource is returned when a [Source] is invalid. ErrInvalidSource = errors.New("gassfile: source is invalid") )
Functions ¶
func DetermineSourceSyntax ¶
func DetermineSourceSyntax(ext string) godartsass.SourceSyntax
DetermineSourceSyntax returns the godartsass.SourceSyntax of a file based on its extension.
Types ¶
type Gassfile ¶
type Gassfile struct {
// contains filtered or unexported fields
}
Gassfile is a plaintext file containing a collecton of *Source, delimited by newlines.
func NewFromReader ¶
NewFromReader creates a new *Gassfile from the given io.Reader.
type Source ¶
type Source struct {
// contains filtered or unexported fields
}
Source represents a collection of paths used to transpile Sass to CSS.
func (*Source) Output ¶
Output returns the output of the Source. If the output ends with a CSS file, that is returned, otherwise the name of the input file is used.
func (*Source) Relative ¶
Relative returns a slice containing absolute paths to directories relative to the input of the Source.
func (*Source) Syntax ¶
func (s *Source) Syntax() godartsass.SourceSyntax
Syntax returns the syntax used by the input based on its file extension.