tj / styl

Flexible and fast modular CSS preprocessor built on top of Rework
530 stars 21 forks source link

Server side compilation #20

Open joekukish opened 11 years ago

joekukish commented 11 years ago

Is it possible to run styl on server side using Rhino?

iamdustan commented 11 years ago

I’m assuming you know this, but it already runs server side in node.js.

I have no experience with Rhino support for node modules, though a quick google search brought up http://mulesoft.github.io/rhinodo/

joekukish commented 11 years ago

My server side is actually java. We were using LESS before and to compile it in the server we were loading Rhino and then less.js runs over it. For the case of stylus since its a node application this is not possible. I tried using the browser version [0] but of course i'm running into some problems.

[0] http://learnboost.github.io/stylus/stylus.js

iamdustan commented 11 years ago

Your issue there may be that stylus !== styl. styl is built on top of rework which also has a built js file intended for us in the browser. You may find some promise walking down that path.

joekukish commented 11 years ago

Yeah sorry for the confusion. I'll try with the browser file that you use.