kiba_ has quit [Ping timeout: 244 seconds]
kiba_ has joined #nanoc
pitosalas has joined #nanoc
pitosalas has quit [Client Quit]
* kiba_
doesn't understand nanoc well enough to use it on a pre-existing project
pkunc has joined #nanoc
relix has joined #nanoc
<
ddfreyne>
kiba_: It's often useful to start out small I suppose!
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<
ddfreyne>
BTW, there is now a Gitter channel too, if you’re interested:
VitamineD has joined #nanoc
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
<
kiba_>
my haml filter is not filtering properly
<
kiba_>
it doesn't output HTML
<
kiba_>
it output raw haml
relix has joined #nanoc
<
kiba_>
is anybody here?
<
kiba_>
layout "*", :haml, :format => :html5 does not work and only output raw haml
<
larissa>
kiba_, isn't haml the filter?
<
larissa>
it should be
<
larissa>
filter :haml
<
larissa>
layout 'default'
<
kiba_>
larissa: I am trying out different stuff with no clues as to why my haml isn't outputing right
<
larissa>
or your layout name
<
kiba_>
larissa: I changed it back
<
larissa>
i made a small test here and it worked for me
<
larissa>
what's your environment? version are you using?
<
kiba_>
nanoc version
<
larissa>
what about the haml gem?
<
kiba_>
is my route a problem
<
kiba_>
it's default stuff
<
larissa>
you said you are getting raw haml on your output folder?
<
kiba_>
raw haml as index.html
<
larissa>
can you show me the content of index.html?
<
larissa>
kiba_, you wrote this haml content or is it default nanoc stuff?
<
kiba_>
larissa: I used a html to haml converter and delete some stuff
<
larissa>
s/either/as well/
<
kiba_>
silent bug, ugh
<
kiba_>
larissa: erb stuff?
<
larissa>
what do you mean?
<
kiba_>
ruby stuff inside the template
<
kiba_>
like = yield
<
kiba_>
I simplified it drastically
<
kiba_>
!!! %html{:lang => "en"} %head %meta{:charset => "utf-8"} %title Stuff %body stuff
<
kiba_>
doesn't change a thing
<
larissa>
this is just a content page, right? you dont need any of that, ie html, title, body tags
<
larissa>
no, it's all in the layout page most likely
<
kiba_>
I modified layouts/default.haml
<
larissa>
so it's not a content page, it's your layout page
<
kiba_>
it won't output the content
<
kiba_>
just the layout
<
kiba_>
I am interested in getting it working
<
kiba_>
rather than showing content. We can fix that later
<
larissa>
because you are compiling your layout as erb
<
larissa>
in your last line you have layout '*', :erb
<
kiba_>
don't I need erb with haml?
<
kiba_>
hey, it works!
<
kiba_>
finally figured it out
<
kiba_>
I was such an idiot
<
kiba_>
thanks for popping my assumption
<
kiba_>
for some reason, I thought erb only do stuff like '= yield' and other ruby related stuff
<
larissa>
no, haml and erb are totally different things
<
kiba_>
well = yield works with the haml filter just as well
<
larissa>
no, you put ruby stuff on haml too :)
<
kiba_>
that's what I was so confused about. I thought erb do ruby stuff and haml only do haml stuff. I didn't realized haml can do ruby stuff.
<
kiba_>
and I thought I was compiling haml layout stuff with the compile block.
<
kiba_>
so, my assumption about how nanoc works was all wrong as well
<
kiba_>
anyway, I need a nap
<
kiba_>
before I continue
alerante has joined #nanoc
pkunc has quit [Quit: Leaving.]
pkunc has joined #nanoc
pkunc has quit [Quit: Leaving.]
kiba_ has quit [Ping timeout: 248 seconds]
kiba_ has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
relix has joined #nanoc
relix has quit [Quit: My MacBook Pro has gone to sleep. ZZZzzz…]
kiba_ has quit [Ping timeout: 244 seconds]