Go Binding for libsass
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
_scss sass_test.go: add test and testee scss Dec 11, 2012
libsass @ 4c0d1b8
.gitignore add .gitignore Dec 11, 2012
.gitmodules Add libsass as submodule Dec 6, 2012
README.md Update README.md Sep 8, 2015
install_libsass.sh install_libsass.sh: add missing popd Dec 20, 2012
libsass_wrapper.c
libsass_wrapper.h Add wrapper for compile file Dec 11, 2012
sass.go String replace logic failed in `CompileFolder` when on Windows platfo… May 26, 2013
sass_interface.h Add header for libsass Dec 9, 2012
sass_test.go

README.md

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.