SASS Sugar
Posted: 10 February 2010 12:48 PM   [ Ignore ]
Newbie
Rank
Total Posts:  9
Joined  2010-02-10

I’ve been working on a sugar for SASS. Still doesn’t do everything right, but it’s a start.
http://github.com/hawx/Sass.sugar

Profile
 
 
Posted: 18 April 2010 11:50 AM   [ Ignore ]   [ # 1 ]
Newbie
Rank
Total Posts:  2
Joined  2010-04-18

very nice! im really excited to see this grow. Just saw one bug. the ‘p’ in px is always a different color then x in px.

Anyone have any tips on getting something like Compass intergrated into Espresso?

Profile
 
 
Posted: 19 April 2010 10:30 AM   [ Ignore ]   [ # 2 ]
Newbie
Rank
Total Posts:  9
Joined  2010-02-10

Thanks but I can’t seem to replicate your problem could you post a screenshot?
And I have thought about integrating sass into the sugar, but that would probably require cocoa which I don’t know.

Profile
 
 
Posted: 19 April 2010 11:30 AM   [ Ignore ]   [ # 3 ]
Moderator
RankRankRankRank
Total Posts:  1252
Joined  2008-10-28

It looks like Compass is just a command-line tool, which you could certainly access without any Objective-C using TEALoader.  Just write scripts to call SASS or Compass in whatever language you’re familiar with (Ruby, PHP, Python, Bash, whatever) and you can link them into your Sugar with some simple XML:

http://onecrayon.com/tea/docs/shell-scripts/

There’s support for running short shell commands via Javascript in Spice, as well, but I haven’t worked out the kinks enough for a beta yet.

 Signature 

Ian Beck
MacRabbit Support

Follow us on Twitter, or try my custom themes: Quiet Light & Earthworm

Profile
 
 
Posted: 19 April 2010 10:25 PM   [ Ignore ]   [ # 4 ]
Newbie
Rank
Total Posts:  2
Joined  2010-04-18

i just realize what is causing the problem. I’m writing each item with the colon at the beginning of the line eg: ”:background-position #{!x !y}” rather then after the name of the property. I’m not sure of the status of the use of the colon but that’s how I’ve been doing it in current projects.

screenshot just incase

http://img.skitch.com/20100420-n3qppi4f3ma6rd2xiaqsb6hdi9.png

Profile
 
 
Posted: 20 April 2010 10:02 AM   [ Ignore ]   [ # 5 ]
Newbie
Rank
Total Posts:  9
Joined  2010-02-10

Check out the new version, you can now create .sass files from within Espresso.
http://github.com/hawx/Sass.sugar

Profile
 
 
Posted: 29 September 2010 06:12 AM   [ Ignore ]   [ # 6 ]
Newbie
Rank
Total Posts:  4
Joined  2010-09-29

Also planning to implement the new syntax? (SCSS)

e.g.

@mixin foo($a#333, $b: #fff) {
   
color$a;
   
background-color$b;
}

.wrapper {
   
@include foo(#fff, #eee);

Profile
 
 
Posted: 29 September 2010 10:50 AM   [ Ignore ]   [ # 7 ]
Newbie
Rank
Total Posts:  9
Joined  2010-02-10

I’m not planning to implement SCSS, but I was planning to add the new SASS stuff to it.

Profile
 
 
Posted: 30 September 2010 02:39 AM   [ Ignore ]   [ # 8 ]
Newbie
Rank
Total Posts:  4
Joined  2010-09-29
hawx - 29 September 2010 10:50 AM
I’m not planning to implement SCSS, but I was planning to add the new SASS stuff to it.

Too bad.

Profile