ddfreyne changed the topic of #nanoc to: 3.6.7 (dec 9th) | web http://nanoc.ws/ | repo http://bit.ly/XE6e3G | issues http://bit.ly/VfXaSV | forum http://ho.io/n-discuss | irclog http://irclog.whitequark.org/nanoc
cDlm has joined #nanoc
VitamineD has quit [Ping timeout: 252 seconds]
cDlm is now known as VitamineD
jarr0dsz has quit [Ping timeout: 272 seconds]
VitamineD has quit [Quit: VitamineD]
jugglinmike has quit [Quit: Leaving.]
lkoester is now known as ldk
jarr0dsz has joined #nanoc
jarr0dsz has quit [Remote host closed the connection]
VitamineD has joined #nanoc
VitamineD has quit [Quit: VitamineD]
pavelkunc has joined #nanoc
VitamineD has joined #nanoc
VitamineD has quit [Client Quit]
VitamineD has joined #nanoc
ics has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
VitamineD has quit [Quit: VitamineD]
VitamineD has joined #nanoc
ics has joined #nanoc
jarr0dsz has joined #nanoc
jarr0dsz has quit [Max SendQ exceeded]
jarr0dsz has joined #nanoc
pavelkunc has quit [Ping timeout: 246 seconds]
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
pavelkunc1 has joined #nanoc
pavelkunc1 has quit [Ping timeout: 240 seconds]
jarr0dsz has joined #nanoc
VitamineD has quit [Quit: VitamineD]
<ddfreyne> tom[]: By generating items I mean creating in-memory items in the preprocess block that aggregate the contents of several other items
<ddfreyne> e.g. If you compile C source code, the .o files can be considered output of the .c files, but then you still need to combine the .o files into an executable, which will not have an on-disk source representation, because it is build from other items
jugglinmike has joined #nanoc
VitamineD has joined #nanoc
pavelkunc has joined #nanoc
jaspervd2 is now known as jaspervdj
VitamineD has quit [Ping timeout: 264 seconds]
<tom[]> @ddfreyne: i see. so you were asking about the "merge DSL command to generate items" thing?
pavelkunc has quit [Ping timeout: 264 seconds]
pavelkunc has joined #nanoc
VitamineD has joined #nanoc
<ddfreyne> yup
<tom[]> iiuc, i would probably not use something like that
<tom[]> because each combined/compressed final asset file is assembled from the same base set of sources
<tom[]> what i have done is 1. put the sources somewhere with whatever basic compilation they need (eg sass). 2. specify null routing for them. 3. create items for final resource files and run then through erb and a suitable compressor. 4. these files contain likes like: <%= @items['/assets/css/base/'].compiled_content() %>
<tom[]> this allows me to design a set of optimized final asset files, each specified in terms of it's own language and including content from other files
<tom[]> simple, clear and gives me the control i want
tantalum has joined #nanoc
<tantalum> Hi Guys,
<number-six> tantalum: ddfreyne (19 days ago): How big is your site, in number of pages?
<tantalum> number-six, ?
<tantalum> Any way.
<tantalum> I have a site and we need a desktop and a mobile version, with the same content
<tantalum> I've used Item Representations to compile a mobile and desktop version
<tantalum> but how do I route the representations?
<tantalum> route '/content/pages/*', :rep => :mobile do .... end ?
<tantalum> would that be it? the docs are a little vague on that subject
pavelkunc has quit [Ping timeout: 250 seconds]
pavelkunc has joined #nanoc
<ddfreyne> tantalum: yes
<tantalum> ddfreyne, Thanks... I'm compiling as we speak :-)
<ddfreyne> The example on there says
<ddfreyne> route "/people/*/", :rep => :text do item.identifier.chop + ".txt"
<ddfreyne> end
<ddfreyne> tantalum: number-six is a bot that records messages and plays them back when you come back
<ddfreyne> So 19 days ago you had an issue with a large site, I imagine
<tantalum> it discusses compiling items with reps
<tantalum> ddfreyne, Yeah, I do
<ddfreyne> tantalum: Ahh, i twould make sense for the examples there to match, which they currently don't
<tantalum> it's just me bitching about how long it takes to compile the content
<tantalum> ddfreyne, Yeah, that's why I was confused
<ddfreyne> tantalum: What filters are you using? It may be worth reducing the amount of filtering and choosing faster filters
<ddfreyne> e.g. rubypants is slow, and typogruby is extremely slow
<tantalum> My slowest filter by far seems to be sass
<ddfreyne> tantalum: What does compiling with --verbose tell you?
<ddfreyne> (using the most recent nanoc)
<ddfreyne> tantalum: How long does it take to compile your site? How many items does it have, roughly?
<tantalum> ddfreyne, I'll have to check it later... I appreciate the help
<ddfreyne> You're welcome
<tantalum> Once I get the mobile site up I', gonna try to cut down the compilation time
<tantalum> I know my biggest holdup is sass, and I have 1,000+ items
<tantalum> and two representations for content pages
<gregkare> There's probably a gem that uses the C libsass, and if not you can just use a binary I guess, that should make it much faster
<tantalum> so it's not _unexpectedly_ slow
<gregkare> I have to run, see you!
<tantalum> Later
<ddfreyne> Seeya
_whitelogger has joined #nanoc
brcwade has joined #nanoc
<brcwade> Hey, I had a quick question about creating new pages in nanoc that I am getting confused with
<brcwade> So, when you create a new page, you have to create a new .md file in the content directory
<brcwade> and that is associated with the default.html html file
<brcwade> and I know you can create a new html file that is associated with that .md file
<brcwade> but I'm not sure how to connect the two
<brcwade> Like, I can't just create a .md page called aboutus.md and then an html page called aboutus.html, it still used the default.html page
<brcwade> if that makes sense
musicmatze has joined #nanoc
pavelkunc1 has joined #nanoc
<brcwade> probably kind of an easy thing that I'm missing, but I'm new to nanoc
pavelkunc has quit [Ping timeout: 252 seconds]
<brcwade> so is it the stuff under BUILDING THE ITEM REPRESENTATIONS and ROUTING THE ITEM REPRESENTATIONS ?
<tantalum> brcwade, It's a two-step process
<tantalum> First you compile the content, such as translate markdown into HTML, apply the templates... etc
<tantalum> the second step is routing which matches a representation to an output file
<brcwade> Is there a specific file where it would be located in?
<brcwade> oh the Rules file?
<brcwade> and that would connect the layouts to the content?
<tom[]> brcwade: it sure does
<tom[]> brcwade: have you done the tutorial? it's quite good
<brcwade> I think I found where the issue is, if it is just stuff that I have to change in the Rules file
pavelkunc1 has quit [Ping timeout: 260 seconds]
pavelkunc has joined #nanoc
pavelkunc1 has joined #nanoc
pavelkunc2 has joined #nanoc
pavelkunc has quit [Ping timeout: 248 seconds]
pavelkunc1 has quit [Ping timeout: 260 seconds]
oranjevaia has joined #nanoc
oranjevaia has quit [Ping timeout: 264 seconds]
jarr0dsz has quit [Quit: My MacBook has gone to sleep. ZZZzzz…]
<guardian> ddfreyne: can you remind me the js search lib you used with nanoc?
brcwade has quit [Quit: http://www.kiwiirc.com/ - A hand crafted IRC client]
tantalum has quit [Quit: Leaving]
<dkm> next time tantalum is online someone suggest responsive CSS layouts to him regarding "mobile and desktop" version of his site
<dkm> I use susy, which is quite nice
<dkm> moral of the story, I don't think different versions of the content for mobile vs. desktop should be different nanoc representations
jarr0dsz has joined #nanoc
pavelkunc2 has quit [Ping timeout: 260 seconds]