danlarkin / clabango

it's a templating language for clojure I guess?
BSD 3-Clause "New" or "Revised" License
73 stars 9 forks source link

Include doesn't seem to work #11

Open clojens opened 11 years ago

clojens commented 11 years ago

I've tried everything I could in Luminus but no way "include" will work. Any other magic required that didn't get mentioned perhaps? Am I missing something?

update: It still doesn't work like expected, but now I just rendered it (a menu to plug in) as a key of the object sent to the template and it includes the menu I wanted.

Anyhow it seems to be a lack of understanding / Luminus perhaps on my part. Either their guide is missing information or it's broken.

extends inline This tag is also used in template inheritance -- It defines the current template as inheriting from another.

Note use of the word also. For what other purposes is it used then?

danlarkin commented 11 years ago

Ok so first of all, this project (clabango) is not luminus and has nothing to do with luminus. I don't use luminus and if your problem stems from some integration or something else it's doing then I don't think I can help you.

That being said, if there's a problem in clabango I very much want to fix it and I'd appreciate your help.

Could you submit a more detailed description of your problem, though? I have tests that demonstrate include working, so perhaps there's a problem with those tests, or maybe a misunderstanding around how it actually works. But I can't help you with a problem around it just "not working" because you haven't given enough context.


As for the extends documentation, the also is because the tag that's documented above, block/endblock, mentions that it's used for template inheritance.

danlarkin commented 11 years ago

@clojens any thoughts?

clojens commented 11 years ago

danlarkin: sorry I've really been occupied with stuff so I hadn't had time to read the messages yet. I picked up the project from which this issue arose so I'll check it out once more today and try to pin-point it better. I'm not that profound in Clojure yet but getting a nice way so I'll try provide some insights/details as I find them this today, this weekend or the next week. Thanks :)