sassc

package
v0.0.0-...-777830f Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2026 License: BSD-3-Clause Imports: 1 Imported by: 0

Documentation

Overview

Package sassc mirrors the legacy SassC gem surface — SassC::Engine.new( template, style:).render — layered over the same pure-Go engine, since real applications still use both the modern sass-embedded and the older sassc API.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
	// contains filtered or unexported fields
}

Engine mirrors SassC::Engine.

func NewEngine

func NewEngine(template string, opts EngineOptions) *Engine

NewEngine mirrors SassC::Engine.new(template, **options).

func (*Engine) Render

func (e *Engine) Render() (string, error)

Render mirrors SassC::Engine#render, returning the compiled CSS.

type EngineOptions

type EngineOptions struct {
	Style     Style
	Syntax    string // "scss" (default) or "sass"/"indented"
	LoadPaths []string
}

EngineOptions mirrors SassC::Engine.new keyword options.

type Style

type Style string

Style mirrors SassC's `:style` option (:expanded, :nested, :compact, :compressed). The pure-Go engine implements expanded and compressed; :nested and :compact fall back to expanded (their legacy layouts are not emitted).

const (
	StyleExpanded   Style = "expanded"
	StyleNested     Style = "nested"
	StyleCompact    Style = "compact"
	StyleCompressed Style = "compressed"
)

Jump to

Keyboard shortcuts

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