Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

require in styles.rb

#33

Can not organize the styles by the prop idea they are in. I want the styles file to be

require "main_style"


and main_style.rb is somewhere in the search path, looking like:

main {
  # some style
}

I get the error:

Exception in thread "main" /Users/paulwpagel/Projects/todont/styles/main_style.rb:1: ./styles.rb:1: undefined method `main' for main:Object
    ----- ./styles.rb lines 1 - 1 -----
    * 1: require File.expand_path(File.dirname(__FILE__) + "/styles/main_style")
 (Limelight::BuildException)
    from /Users/paulwpagel/Projects/todont/styles/main_style.rb:27:in `require'
    from /Users/paulwpagel/Projects/limelight/jruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
    from (eval):1:in `load_styles'
    ...internal jruby stack elided...

when I try that now

Reported by paul (at 8thlight) · September 7th, 2008 @ 10:07 AM

State: new
Milestone: Limelight 0.6
Assigned to: nobody

Activity

  1. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.2 to Limelight 0.3

    Let's handle this just like we do in prop files.

    __install "style path"

    September 8th, 2008 @ 11:02 AM

  2. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.3 to Limelight 0.4
    • Tag changed from feature, request to feature_request

    November 5th, 2008 @ 01:12 AM

  3. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.4 to Limelight 0.5

    August 17th, 2009 @ 05:15 PM

  4. Micah Martin
    Micah Martin
    • Milestone changed from Limelight 0.5 to Limelight 0.6

    October 29th, 2009 @ 08:50 PM

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.