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:
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.
$ 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.
Use go doc
to vew the documentation for sass
go doc github.com/suapapa/go_sass
Or alternatively, refer go.pkgdoc.org
Compile Sass folder into CSS:
package main
import (
"github.com/suapapa/go_sass"
)
func main() {
var sc sass.Compiler
sc.CompileFolder("_scss", "css")
}
Homin Lee <homin.lee@suapapa.net>
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.