Hopbot log for 2009-06-16 - Helma IRC channel: #helma on irc.freenode.net

2009-06-16:

[11:28] <simono> res.encode docstring made me smile :) "Writes a string as smooth HTML to the output buffer. "
[11:59] <simono> hannesw, do you have time for quick subskinning question? i don't see what i'm doing wrong http://helma.pastebin.com/f7bce2d67
[12:00] <simono> or any takers? :)
[12:01] <hannesw> hm... what isn't working?
[12:01] <hannesw> hm, what's that with #content and #content.end?
[12:02] <hannesw> that's not going to work
[12:02] <simono> hm, yes i'm kind of misusing them. i just want to substitute a part of base in the subskin
[12:03] <simono> but i'm wondering why the first one, #content, is not being used
[12:03] <hannesw> i don't know
[12:03] <hannesw> you're getting two subskins in the base skin
[12:03] <simono> ok :)
[12:04] <simono> yes #content and #content.end
[12:04] <hannesw> one called content, the other content.end
[12:04] <hannesw> i think
[12:04] <hannesw> end #content isn't rendered?
[12:04] <simono> yes thats the problem
[12:04] <hannesw> hm, i think you need to explicitly render it somewhere...
[12:04] <hannesw> with a render macro or something.
[12:05] <hannesw> subskins in helma are just like functions. if you don't call/render them, nothing happens
[12:05] <simono> hm, okay.. i wanted to make a wiki page explaining skin extend, but all my examples didn't work as i expected :)
[12:05] <simono> but i do .extend base...
[12:05] <simono> i render with renderSkin("specific")
[12:06] <simono> and specific is extending base
[12:06] <hannesw> yes, but even if you render base, #content and #content.base won't display
[12:06] <hannesw> unless you render them explicitley
[12:06] <simono> but if i render specific.skin?
[12:06] <simono> (what i do)
[12:06] <simono> plz see what i pasted :) thats 100% the whole app
[12:07] <hannesw> does specific skin render #content andywhere? no, it doesn't. neither does base.skin
[12:07] <hannesw> what you don't understand is that subskins in helma are not part of the main skin
[12:07] <hannesw> they don't get rendered automatically
[12:07] <simono> hm okay okay, that explains it all :)
[12:07] <hannesw> and the whole example doesn't make a lot of sense.
[12:08] <simono> renderSkin("specific#content")
[12:08] <hannesw> yes, that should render it
[12:08] <simono> ok, sorry... now i get it, and that makes the example senseless

 

 

In the channel now:

Logs by date: