Jump to:

11004 Posts in 2735 Topics by 1824 members

All other Modules

SilverStripe Forums » All other Modules » Compass module help

Discuss all other Modules here.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 2190 Views
  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    Compass module help Link to this post

    Hi,

    I'm running Silverstripe on MAMP on Lion, but I guess I'm doing something wrong.

    I managed to run sapphire/sake dev/compass/convert --theme=foo, which worked, but I want to use SCSS rather than SASS.

    I used http://css2sass.heroku.com/ tool to convert my css to scss, placed them into the sass/ folder and put:

    preferred_syntax= :scss

    into the config.rb file.

    However I get the following message when I go to dev/compass/rebuild:
    ________________________________________________________________________
    [User Error] Compass Error:Nothing to compile. If you're trying to start a new project, you have left off the directory argument.Run "compass -h" to get help.
    ________________________________________________________________________

    Additionally if I go to: dev/compass I get another error:
    ________________________________________________________________________
    [User Error] Uncaught Exception: Object->__call(): the method 'index' does not exist on 'Compass'
    ________________________________________________________________________

    These errors happen both through the browser and through the terminal.

    I'm sure it's something really simple! But if someone could help me out of my misery.

  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    Re: Compass module help Link to this post

    Just bumping in case anyone has any ideas?

    I ended up using compass through the terminal watching a folder, but it would be more convenient if the module worked.

  • Willr
    Avatar
    Forum Moderator
    5511 Posts

    Re: Compass module help Link to this post

    What is the contents of your config.rb?

    Also make sure Compass::$syntax = scss for your use case.

  • Matty Balaam
    Avatar
    Community Member
    69 Posts

    Re: Compass module help Link to this post

    Hi, thanks, it's now compiling. But I still get the error when I go to dev/compass.

    Here's the config.rb

    require 'susy'

    http_path = "/"
    css_dir = "css"
    sass_dir = "scss"
    images_dir = "images"
    javascripts_dir = "javascripts"

    output_style = :expanded

    2190 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.