separate another items folder?

31 views
Skip to first unread message

Seiichi

unread,
Jan 19, 2012, 11:14:00 PM1/19/12
to nanoc
Hello everyone,

I just want to watch my sass folder like below.

. (current)
|-config.yaml
|-compass.rb
|-content
| `-index.html
|-Rules
`-sass
`-screen.sass

So I added my config.yaml that data_sources: - items_root: /sass/
and added rules compile '/sass/*' do filter :sass, Compass... end
route '/sass/*' do item.identifier.chop + '.css' end can't compiled
(blank file).

Please give me some ideas or it's not possible?

Thanks

Seiichi

unread,
Jan 21, 2012, 4:58:32 PM1/21/12
to na...@googlegroups.com
I'm sorry this was silly question.

I noticed use relative import my sass files.

# content/screen.sass like
@import "../sass/foo"

Thanks

Denis Defreyne

unread,
Jan 22, 2012, 8:44:35 AM1/22/12
to na...@googlegroups.com
Hi,

For future reference, here’s the answer to your question: no, you cannot change the name of the content directory (it is hardcoded). items_root only changes the prefix of the items inside the content directory.

Cheers,

Denis

> --
> You received this message because you are subscribed to the nanoc discusssion group.
>
> To post to this group, send email to na...@googlegroups.com
> To unsubscribe from this group, send email to
> nanoc+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nanoc?hl=en

Seiichi

unread,
Jan 23, 2012, 7:23:41 AM1/23/12
to na...@googlegroups.com
Hi Dennis,

Thanks for the reply. Eventually I think it is better create sass folder inside content folder. It reminds me keep it simple. :)

Best Regards,

Seiichi

arnau siches

unread,
Jan 25, 2012, 4:17:35 PM1/25/12
to na...@googlegroups.com
Hi,

If, for any reason, you need another content folder you can try
Nutils' filesystem_customizable datasource
https://github.com/arnau/Nutils/blob/master/lib/nutils/data_sources/filesystem_customizable.rb

Nutils as a gem: http://rubygems.org/gems/nutils

> --
> You received this message because you are subscribed to the nanoc
> discusssion group.
>
> To post to this group, send email to na...@googlegroups.com
> To unsubscribe from this group, send email to
> nanoc+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nanoc?hl=en

--
arnau siches
esbudellat.net

Seiichi

unread,
Jan 27, 2012, 10:23:55 PM1/27/12
to nanoc
Hi Arnau,

Thanks for the advice and it worked! (http://bit.ly/zpQJFY)
I consider for using nutils with my project. It was really helped.

Best Regards,

Seiiichi

On Jan 26, 6:17 am, arnau siches <arnau.sic...@gmail.com> wrote:
> Hi,
>
> If, for any reason, you need another content folder you can try
> Nutils' filesystem_customizable datasourcehttps://github.com/arnau/Nutils/blob/master/lib/nutils/data_sources/f...

arnau siches

unread,
Feb 1, 2012, 6:23:35 AM2/1/12
to na...@googlegroups.com
Glad to hear that!
Reply all
Reply to author
Forward
0 new messages