Giter VIP home page Giter VIP logo

Comments (18)

akhleung avatar akhleung commented on July 17, 2024

Yes, all the output styles will be implemented. It's currently a low priority compared to other features such as full interpolation and selector inheritance.

from libsass.

HamptonMakes avatar HamptonMakes commented on July 17, 2024

Awww, we didn't mean to ruin your excitement.

On Tue, May 1, 2012 at 6:05 AM, Jamie Rumbelow <
[email protected]

wrote:

I got all excited about adding different output styles to my libsass
binding to discover that only SASS_STYLE_NESTED is working!

Are there still plans to make the other style constants work?


Reply to this email directly or view it on GitHub:
#15

from libsass.

MrBenGriffin avatar MrBenGriffin commented on July 17, 2024

We also would like to see compressed!

from libsass.

akhleung avatar akhleung commented on July 17, 2024

I'll be getting this feature in by the end of the month!

from libsass.

akhleung avatar akhleung commented on July 17, 2024

Added support for compressed output styles. Please give it a try!

from libsass.

paramdhal avatar paramdhal commented on July 17, 2024

Not working for me. Getting an empty output

from libsass.

akhleung avatar akhleung commented on July 17, 2024

Can you provide more details on how you're invoking LibSass? It's been working for us.

from libsass.

paramdhal avatar paramdhal commented on July 17, 2024

Using SassC
as in
./bin/sassc [input file]

from libsass.

akhleung avatar akhleung commented on July 17, 2024

Oh, the SassC command-line tool is still hard-coded to use the nested style (haven't had time to update that yet!). To use the compressed style, you currently have to set the flag in the C interface when invoking LibSass as a library.

from libsass.

craigbarnes avatar craigbarnes commented on July 17, 2024

I'm just working on sassc flag handling now. Is it ok to use getopt or does it need to be Windows friendly?

from libsass.

akhleung avatar akhleung commented on July 17, 2024

Hmm ... preferably Windows-friendly, but that's less of a priority than keeping the core library itself portable. So I'd say go ahead and use getopt if it makes things much easier and more robust. Thanks for the help!

from libsass.

paramdhal avatar paramdhal commented on July 17, 2024

Sorry if i being a bit dense - dont have much experience with C

Changed the sassc.c file line 16 to ctx->options.output_style = SASS_STYLE_COMPRESSED;

Then ran make

Output is now empty

from libsass.

akhleung avatar akhleung commented on July 17, 2024

Have you updated the libsass submodule? Try going into the libsass subfolder and run git pull. Then back out and do a make clean and make.

from libsass.

paramdhal avatar paramdhal commented on July 17, 2024

That did it! Thanks for the help...
Seems to be working well

from libsass.

akhleung avatar akhleung commented on July 17, 2024

No problem! And let me know if the styles don't look right!

from libsass.

paramdhal avatar paramdhal commented on July 17, 2024

Will be testing tomorrow. Ill let you know if there any problems!

from libsass.

am11 avatar am11 commented on July 17, 2024

Isn't expanded and nested somewhat redundant?

Supposedly, nested produces the following output:

a > b > c {
    declaration }
    a > b > c > d {
        declaration1;
         declaration2; }

and the expanded is supposed to be:

a > b > c
{
    declaration;
}

a > b > c > d
{
    declaration1;
     declaration2;
}

Then there might be a requirement which begs another kind of nested expansion:

a > b > c
{
    declaration;
}

    a > b > c > d
    {
        declaration1;
        declaration2;
    }

So, wouldn't it make sense to have just two styles: expanded (which is nested-expansion; unobtrusive, well-formatted and nested) and compact (minified flavor)? Perhaps, expanded can be aided by another option --indent, which is the base indentation in case of multi-nesting (normally its 2 or 4).

On a related note, both kind of outputs should get the _detailed_ source maps pinpointing the location for each source-to-source artifacts (exactly how lessc does it), as opposed to the mere hints -- not capturing the details to full extent / depriving consumers of implementing some extraordinary features. See #324.

from libsass.

HamptonMakes avatar HamptonMakes commented on July 17, 2024

We are trying to match the styles produced by the Ruby implementation. I'm going to close this since the issue is actually about the constants, not compatibility with Ruby sass.

from libsass.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.