Skip to content

suapapa/go_sass

Repository files navigation

Before start, there is another good Sass compilers written in !!PURE!! Go. Star them not here:

Or you can go to another up to date libsass binding projct:

About sass

It's Go binding for libsass which written in cpp by hcailin. It compile Sass file (.scss) to CSS.

This is no more an experimental cgo project to find best practice to guide people to download and install third party c library.

Documentation

Prerequisites

Install Go

Installation

$ go get github.com/suapapa/go_sass

If you don't have libsass in your system, run;

$ cd $GOROOT/src/pkg/github.com/suapapa/go_sass
$ install_libsass.sh

I'll ask admin password to install the libsass system widely.

General Documentation

Use go doc to vew the documentation for sass

go doc github.com/suapapa/go_sass

Or alternatively, refer go.pkgdoc.org

Example

Compile Sass folder into CSS:

package main

import (
        "github.com/suapapa/go_sass"
)

func main() {
        var sc sass.Compiler
        sc.CompileFolder("_scss", "css")
}

Author

Homin Lee <homin.lee@suapapa.net>

Copyright & License

Copyright (c) 2012, Homin Lee. All rights reserved. Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.

About

!! DEPRECATED !! Go Binding for libsass

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published