You only need to do that if you want to use Sass outside of the normal
context of a Rails rendering engine. If you were embedding it in some
application, for instance, or calling it from a helper.
- Nathan
mike wrote:
> Cool, thank you. I assumed it couldn't be so easy. I was thinking i
> had to do something like the tutorial says:
>
> engine = Sass::Engine.new("#main\n :background-color #0000ff")
> engine.render #=> "#main { background-color: #0000ff; }\n"
>
> When would something like this be necessary?
> Thanks, Mike
>
>
> On Oct 12, 12:41 pm, Nathan Weizenbaum <[EMAIL PROTECTED]> wrote:
>
>> In development mode, it'll compile as soon as you access an action.
>> Alternately, you can open up script/console and run
>> Sass::Plugin.update_stylesheets.
>>
>> - Nathan
>>
>> mike wrote:
>>
>>> i apologize in advance if this question seems dumb...but...
>>>
>>> i have a sass folder in public/stylesheets with a sass template ready
>>> to go...
>>> how do i tell my rails app to compile my sass files? does something
>>> need to go in application.rb? the tutorial on the haml website doesn't
>>> seem to tell you specifically how this is done, or at lease i don't
>>> think so.
>>>
>>> thanks in advance to whoever can straighted me out.
>>> mike
>>>
>
>
> >
>
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Haml" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/haml?hl=en
-~----------~----~----~----~------~----~------~--~---