Re: SASS + Emscripted Ruby = SASS.js

90 views
Skip to first unread message

Roy Tomeij

unread,
Apr 19, 2013, 6:18:53 AM4/19/13
to sass...@googlegroups.com
I don't think it's possible, because of things like @extend (and because a lot of people are dependent on Compass, which can be mimicked in JavaScript).


On Thursday, March 28, 2013 6:05:31 AM UTC+1, Ali Robertson wrote:
Hi,

I'm well out of my depth in asking this question - having very limited experience with ruby, and absolutely none with emscripten...

But I had this crazy idea and I've been unable to find anyone else who has asked it: would it be possible to use a project like "Emscripted Ruby" (https://github.com/replit/emscripted-ruby) - to compile SASS to a javascript file that could be run in-browser? I think it's unlikely the performance would reach the level of LESS.js, but it might be a useful hack for developers to be able to compile some SASS on the fly... Hopefully you could keep a single codebase but have all the benefits of working with node.js, working in the browser, etc. Basically it would help to make SASS a full replacement for LESS.

If this kicks off a conversation, I most likely won't be able to contribute... As I say, it's not my area of expertise, but just putting it out there :)

Chris Eppstein

unread,
Apr 24, 2013, 6:06:34 PM4/24/13
to sass...@googlegroups.com
The problem with people who want to run stylesheet compilation in their browser in development is that they seem to end up doing this in production far too often.

As such, I see in-browser compilation as a feature of negative value for end users and won't ever go out of my way to enable it.

That said, having sass available to server side javascript is fantastic and is the point of libsass and adapters like https://github.com/andrew/node-sass.

Chris


--
You received this message because you are subscribed to the Google Groups "Sass" group.
To unsubscribe from this group and stop receiving emails from it, send an email to sass-lang+...@googlegroups.com.
To post to this group, send email to sass...@googlegroups.com.
Visit this group at http://groups.google.com/group/sass-lang?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply all
Reply to author
Forward
0 new messages