louquillio has quit [Remote host closed the connection]
louquillio has joined #nanoc
skroon has joined #nanoc
yogsototh1 has quit [Remote host closed the connection]
yogsototh has joined #nanoc
alerante has quit [Remote host closed the connection]
pavelkunc has joined #nanoc
skroon has quit [Quit: leaving]
_br_ has quit [Ping timeout: 246 seconds]
skroon has joined #nanoc
<skroon>
hi all
_br_ has joined #nanoc
<skroon>
I would like to get a file in: /content/foo.html to also be available as /foo.html how can I accomplish this? specific routing Rule?
<skroon>
i've set: allow_periods_in_identifiers: true so perhaps that's also causing troubles?
cDlm has quit [Quit: cDlm]
jugglinmike has joined #nanoc
cDlm has joined #nanoc
<ddfreyne>
skroon: Yes, that would be a routing rule. route '/foo/' ; '/foo.html' ; end -- but obviously you can generalise that
<musicmatze>
guardian: Your Packed Array thing is really great! WTFPL license too! I think I'll use it and/or contribute!
<guardian>
nice
<guardian>
I hope it gets used
<guardian>
or well, I also realize it addresses a niche
<guardian>
it's on reddit right now
<guardian>
I'm glad I lived the sysadmin journey then the webdev journey before
<guardian>
my nginx based server + nanoc handle the redis flood easily
<guardian>
s/redis/reddit/
<stbuehler>
booh nginx :P
<skroon>
hey ddfreyne how are you doing? today I spend some more time playing around with nanoc, still lots to learn
<skroon>
guardian: hahaha yeah! I have the same, glad to have been a sysadmin first :-)
<skroon>
anyone here using SASS and Compass with nanoc? i'm getting into some compilation errors, where as 'compass compile -c compas.rb' works fine, however guard-compass is giving errors
<skroon>
for example the error I got was, that via guard-compass it doesn't seem to load some of my partials
<skroon>
sass partials that is... @mixins
skroon has quit [Ping timeout: 240 seconds]
alerante has joined #nanoc
skroon has joined #nanoc
skroon has quit [Ping timeout: 240 seconds]
cDlm has quit [Ping timeout: 245 seconds]
skroon has joined #nanoc
<skroon>
hi
cDlm has joined #nanoc
<bobthecow>
hey
<ddfreyne>
hi
<ddfreyne>
Having internet is so awesome
<ddfreyne>
I am stating the obvious here, but still...
<skroon>
hehehe, how come your internet is so crappy?
<skroon>
i'm amazed btw, that most of internet is crappy nowadays
<skroon>
weird
<skroon>
the first argument to #route is called the identifier, but i'm not 100% sure what it is, e.g.
<skroon>
route '/foo/' do { # stuff }
<skroon>
i'm not really use where that /foo/ is matched against
<skroon>
afaik it would match /content/foo.html
<skroon>
but i'm not sure why
<bobthecow>
it matches whatever item has the identifier "/foo/"
<bobthecow>
obvs :)
<bobthecow>
the way an item gets such an identifier depends on which data source you're using.
<skroon>
ahhh, data source type ;-)
<bobthecow>
for the default one (the one that's pulling items out of content/) the identifier is, approximately, relative_path.sub(/\..*$/, '/')
<bobthecow>
meaning, "replace all extensions with a slash"
<bobthecow>
so content/foo.html would have the identifier /foo/
<bobthecow>
content foo/bar.html would be /foo/bar/
<bobthecow>
etc
<bobthecow>
the one exception is content/baz/index.html ... index.* is a special file representing the "parent folder", kinda like it is on most webservers.
<bobthecow>
i.e.
<bobthecow>
content/baz/index.html -> /baz/
<bobthecow>
make sense?
<skroon>
ah sorry for late reply, didn't get notification
<skroon>
yes that makes sense, but what about if I have: content/foo.html and content/foo.md
<skroon>
that will result in conflict then?
<bobthecow>
yes. nanoc won't compile in that case.
<skroon>
bobthecow: where are you using nanoc for?
<skroon>
perhaps also multilingual as well?
<bobthecow>
several things, none of them multilingual
<skroon>
i'm always someone with strange situations it seems :-)
yogsototh has quit [Remote host closed the connection]
skroon has quit [Ping timeout: 245 seconds]
<guardian>
re
<ddfreyne>
It's not like that in my branch :>
<ddfreyne>
The branch i haven't touched in two months :(