Skip Menu |

This queue is for tickets about the Text-Sass CPAN distribution.

Report information
The Basics
Id: 62471
Status: resolved
Priority: 0/
Queue: Text-Sass

People
Owner: Nobody in particular
Requestors: bo [...] startsiden.no
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.5
Fixed in: (no value)



It seems like Text::Sass->sass2css has some problems with several selectors in the sass. I get the error: Can't use string ("#333") as a HASH ref while "strict refs" in use at /Library/Perl/5.8.8/Text/Sass.pm line 236. I attached a test-file to illustrate my problem.
Subject: sass.t
#!/usr/bin/perl use Text::Sass '0.5'; use Test::More tests => 2; my $css = "h1, h2 {\n color:#333; }"; my $sass = "h1, h2\n color: #333\n"; my $ts = Text::Sass->new(); is($ts->css2sass($css), $sass, "css to sass conversion ok"); is($ts->sass2css($sass), $css, "sass to css conversion ok");
Thanks. I've incorporated your test and made some changes which should help. Should be fixed in Text::Sass 0.6 going into CPAN in a few minutes.