librelist archives

« back to archive

Cannot detect SCSS in theme

Cannot detect SCSS in theme

From:
Nandan Joshi
Date:
2011-12-09 @ 11:58
Hallo,

I'm designing my site using InuitCSS framework, where I use original
base CSS files provided with the package. Rather than converting all
CSS code to SASS (a very cumbersome job), I just renamed the file to
SCSS. As discussed in other thread, I have added following code in my
app.rb of the theme folder:

get '/css/:sheet.css' do
    	content_type 'text/css', :charset => 'utf-8'
      	cache scss(params[:sheet].to_sym)
end

It seems to look for SCSS file in main Nesta CMS libraries, skipping
the theme folder. And, of course, it doesn't find it there. Without
that code in app.rb, it just looks for SASS files.

Is there any other way to make SCSS files detectable? I'm using
Nesta-CMS 0.9.11.


Thanx for any help in advance!


Cheers,
Nandan

Re: [nesta] Cannot detect SCSS in theme

From:
Graham Ashton
Date:
2011-12-13 @ 18:01
On 9 Dec 2011, at 11:58, Nandan Joshi wrote:

> I'm designing my site using InuitCSS framework, where I use original
> base CSS files provided with the package. Rather than converting all
> CSS code to SASS (a very cumbersome job), I just renamed the file to
> SCSS. As discussed in other thread, I have added following code in my
> app.rb of the theme folder:
> 
> get '/css/:sheet.css' do
>    	content_type 'text/css', :charset => 'utf-8'
>      	cache scss(params[:sheet].to_sym)
> end

Hi Nandan. Apologies for my tardiness. Did you see the comment in the 
other thread about the stylesheet method? You can just call that and it'll
find .sass or .scss files. That method is in there by default though (from
0.9.10 I think), so you shouldn't have needed to redefine this.

> It seems to look for SCSS file in main Nesta CMS libraries, skipping
> the theme folder. And, of course, it doesn't find it there.

Are you getting an error message that says it can't find it inside the 
gem? It says that if it can't find it anywhere simply because that's the 
last place it looks, but it definitely looks in ./views, then 
theme/name-of-theme/views and finally the views folder in the gem.

> Is there any other way to make SCSS files detectable? I'm using
> Nesta-CMS 0.9.11.

Your problem is something else. Any chance we can get access to your 
site's code (e.g. on GitHub)?

Cheers,
Graham

Re: [nesta] Cannot detect SCSS in theme

From:
Nandan Joshi
Date:
2011-12-14 @ 22:35
Hallo Graham:

it may seem miraculous, but the problem has been solved by moving all
the files to new site folder. It's the same file structure, but just
without Emacs backup files. I'm not sure, whether it was causing this
kind of problem. Now it finds SCSS files in the themes directory as
expected.

Initially, I resorted to short-term solution of moving those SCSS file
in main Nesta 'View' folder, which, in fact, was working, but
fortunately now I don't need to do it anymore. I want to use
responsive grid design with supportive framework like InuitCSS, that's
why all this fuss!

I haven't uploaded the code to GitHUB, but I pushed the site to
Heroku. It's not entirely finished yet, but you can view it here:
http://nandan.heroku.com

I thank you for the reply and help. I'm extremely happy with Nesta CMS
system. :-)


Cheers,
Nandan

On Tue, Dec 13, 2011 at 7:01 PM, Graham Ashton <graham@effectif.com> wrote:
> On 9 Dec 2011, at 11:58, Nandan Joshi wrote:
>
>> I'm designing my site using InuitCSS framework, where I use original
>> base CSS files provided with the package. Rather than converting all
>> CSS code to SASS (a very cumbersome job), I just renamed the file to
>> SCSS. As discussed in other thread, I have added following code in my
>> app.rb of the theme folder:
>>
>> get '/css/:sheet.css' do
>>       content_type 'text/css', :charset => 'utf-8'
>>       cache scss(params[:sheet].to_sym)
>> end
>
> Hi Nandan. Apologies for my tardiness. Did you see the comment in the 
other thread about the stylesheet method? You can just call that and it'll
find .sass or .scss files. That method is in there by default though (from
0.9.10 I think), so you shouldn't have needed to redefine this.
>
>> It seems to look for SCSS file in main Nesta CMS libraries, skipping
>> the theme folder. And, of course, it doesn't find it there.
>
> Are you getting an error message that says it can't find it inside the 
gem? It says that if it can't find it anywhere simply because that's the 
last place it looks, but it definitely looks in ./views, then 
theme/name-of-theme/views and finally the views folder in the gem.
>
>> Is there any other way to make SCSS files detectable? I'm using
>> Nesta-CMS 0.9.11.
>
> Your problem is something else. Any chance we can get access to your 
site's code (e.g. on GitHub)?
>
> Cheers,
> Graham
>

Re: [nesta] Cannot detect SCSS in theme

From:
Graham Ashton
Date:
2011-12-19 @ 15:05
On 14 Dec 2011, at 22:35, Nandan Joshi wrote:

> it may seem miraculous, but the problem has been solved by moving all
> the files to new site folder. It's the same file structure, but just
> without Emacs backup files. I'm not sure, whether it was causing this
> kind of problem. Now it finds SCSS files in the themes directory as
> expected.

That's weird. Emacs backups with "~" on the end of the filename?

> It's not entirely finished yet, but you can view it here:
> http://nandan.heroku.com
> 
> I thank you for the reply and help. I'm extremely happy with Nesta CMS
> system. :-)

Nice. Glad you like it. I'm moved into my new place now so will be able to
respond to support questions a little faster than I have over the last 
week or so…

Cheers,
Graham