-
Notifications
You must be signed in to change notification settings - Fork 230
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding libsass wrappers to the libsass page #99
Merged
Merged
Changes from 2 commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,11 @@ | ||
resources: | ||
- name: "libSass" | ||
url: "http://libsass.org/" | ||
description: "a C/C++ port of the Sass engine, that can be simple, fast, and easy to integrate." | ||
- name: "Node-sass" | ||
url: "https://www.npmjs.org/package/node-sass" | ||
description: "libSass for Node.js" | ||
- name: "Lightning fast Sass compiling with libsass, Node-sass and Grunt-sass" | ||
url: "http://benfrain.com/lightning-fast-sass-compiling-with-libsass-node-sass-and-grunt-sass/" | ||
description: "by Ben Frain, August 2013" | ||
- name: "libSass Python" | ||
url: "http://dahlia.kr/libsass-python/" | ||
description: "libSass for Python" | ||
- name: "Node, Express and libSass" | ||
url: "https://www.gitbook.io/book/anotheruiguy/nodeexpreslibsass_from-scratch" | ||
description: "Node, Express and libSass: a project from scratch workshop" | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,18 +12,84 @@ title: libSass | |
= link_to "GitHub", "http://github.com/hcatlin/libsass" | ||
|
||
:markdown | ||
## SassC | ||
## Wrappers | ||
|
||
LibSass is just a library. To run the code locally (i.e. to compile your stylesheets), you need an implementer. SassC (get it?) is an implementer written in C. There are a number of other implementations of LibSass - for example Node. We encourage you to write your own port - the whole point of Libsass is that we want to bring Sass to many other languages, not just Ruby! | ||
LibSass is just a library. To run the code locally (i.e. to compile your stylesheets), you need an implementer, or "wrapper". There are a number of other wrappers for LibSass. We encourage you to write your own wrapper - the whole point of Libsass is that we want to bring Sass to many other languages, not just Ruby! | ||
|
||
To run the compiler on your local machine, you need to build SassC. To build SassC, you must have either a local copy of the libsass source or it must be installed into your system. For development, please use the source version. You must then setup an environment variable pointing to the LibSass folder, for example: | ||
Below is are the libSass wrappers that we're currently aware of. Sometimes there are multiple wrappers per language – in those cases, we put the most recently-updated wrapper first. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. "is are" |
||
|
||
~ partial "code-snippets/libsass-setup" | ||
%ul.slides | ||
%li#sassc | ||
:markdown | ||
### Sass C | ||
SassC (get it?) is an wrapper written in C. | ||
|
||
%p | ||
The executable will be in the bin folder. To run it, simply try something like: | ||
To run the compiler on your local machine, you need to build SassC. To build SassC, you must have either a local copy of the libsass source or it must be installed into your system. For development, please use the source version. You must then setup an environment variable pointing to the LibSass folder, for example: | ||
|
||
~ partial "code-snippets/libsass-execute" | ||
~ partial "code-snippets/libsass-setup" | ||
|
||
%p | ||
The executable will be in the bin folder. To run it, simply try something like: | ||
|
||
~ partial "code-snippets/libsass-execute" | ||
|
||
%li#go | ||
:markdown | ||
### Go | ||
The [gosass](https://github.com/moovweb/gosass) project is updated fairly regularly. There are also two other projects: [go-sass](https://github.com/SamWhited/go-sass) and [go_sass](https://github.com/suapapa/go_sass) which have not been updated in a while. | ||
|
||
%li#java | ||
:markdown | ||
### Java | ||
There is one Java wrapper – the [libSass Maven plugin](https://github.com/warmuuh/libsass-maven-plugin). | ||
|
||
%li#javascript | ||
:markdown | ||
### JavaScript | ||
The only pure JavaScript implementation is [sass.js](https://github.com/medialize/sass.js). There's a [browser-based way to test it out](http://medialize.github.io/sass.js/), too. | ||
|
||
%li#lua | ||
:markdown | ||
### Lua | ||
The lua wrapper is found at [lua-sass](https://github.com/craigbarnes/lua-sass). | ||
|
||
%li#net | ||
:markdown | ||
### .NET | ||
[libsass-net](https://github.com/darrenkopp/libsass-net) is updated regularly, and is probably the best bet. There's also [NSass](https://github.com/TBAPI-0KA/NSass), although it hasn't been updated in a while. | ||
|
||
%li#node | ||
:markdown | ||
### Node | ||
The [node-sass](https://github.com/sass/node-sass) project has proven to be popular, and we've taken it into the main Sass GitHub repo. Check out its package page [here](https://www.npmjs.org/package/node-sass), and [there's a dedicated twitter account](https://twitter.com/nodesass) for updates. | ||
|
||
%li#perl | ||
:markdown | ||
### Perl | ||
The [CSS::Sass](https://github.com/sass/perl-libsass) project is updated regularly. There's the [Text-Sass-XS](https://github.com/ysasaki/Text-Sass-XS) project, too, although it hasn't been updated in a while. | ||
|
||
%li#php | ||
:markdown | ||
### PHP | ||
The [SassPHP](https://github.com/sensational/sassphp) project is an updated fork of an [older PHP version](https://github.com/jamierumbelow/sassphp). | ||
|
||
%li#python | ||
:markdown | ||
### Python | ||
There are two python projects that are updated regularly. The [libsass-python](https://github.com/dahlia/libsass-python) project (there are more details on [its own website](http://hongminhee.org/libsass-python/)) and the [python-scss](https://github.com/pistolero/python-scss) project. | ||
|
||
Two other python projects, [pylibsass](https://github.com/rsenk330/pylibsass) and [SassPython](https://github.com/marianoguerra/SassPython), haven't been updated in a while. | ||
|
||
|
||
%li#ruby | ||
:markdown | ||
### Ruby | ||
libSass has also been ported back into ruby, for the [ruby-libsass](https://github.com/sass/ruby-libsass) project. | ||
|
||
%li#scala | ||
:markdown | ||
### Scala | ||
The only scala project, [Sass-Scala](https://github.com/kkung/Sass-Scala), hasn't been updated in a couple of years. | ||
|
||
%h2 About libSass | ||
|
||
|
@@ -38,6 +104,22 @@ title: libSass | |
= image_tag "logos/libsass.png", alt: "libSass logo" | ||
|
||
- content_for :complementary do | ||
%h3 Wrappers | ||
%ul.anchors | ||
%li= link_to "SassC", "#sassc" | ||
%li= link_to "Go", "#go" | ||
%li= link_to "Java", "#java" | ||
%li= link_to "JavaScript", "#javascript" | ||
%li= link_to "Lua", "#lua" | ||
%li= link_to ".NET", "#net" | ||
%li= link_to "Node", "#node" | ||
%li= link_to "Perl", "#perl" | ||
%li= link_to "PHP", "#php" | ||
%li= link_to "Python", "#python" | ||
%li= link_to "Ruby", "#ruby" | ||
%li= link_to "Scala", "#scala" | ||
|
||
|
||
%h3 Resources | ||
|
||
%ul | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
are we sure this needs hyphenation? http://en.wikipedia.org/wiki/Preprocessor