[Radiant] [ANN] Conditional Tags Extension v0.3

2008-11-06 Thread Chris Parrish
I've just pushed the latest changes to GitHub (http://github.com/SwankInnovations/radiant-conditional-tags-extension/tree/master) -- and there are quite a few changes: * Radically improved the way other extensions can create their own evaluators (look for a new extension from me later t

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-26 Thread Jay Levitt
Chris Parrish wrote: This is interesting. I'll have to think about this. Essentially what you're going for here is the removal of the attributes (something I agree with). I bet my extension would be more comfortable if only you could write: I haven't thought this through, but what abo

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-25 Thread Chris Parrish
Sorry. I didn't want to come across so preachy. I agree with you. It bugs me too. If, however, I ask myself whether it would bother a non-techy -- someone who not only doesn't know xml but who's never even heard of it -- then I'd bet nearly all would prefer something like: to But the

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-25 Thread Manuel Meurer
Ok, you're right. For me, would not feel right, though. Manuel On Sat, Oct 25, 2008 at 8:35 PM, Chris Parrish <[EMAIL PROTECTED]> wrote: > Manuel Meurer wrote: I think that there is a place for these tags and I'd love it if there was an easy way to use this to create both if_

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-25 Thread Chris Parrish
Manuel Meurer wrote: I think that there is a place for these tags and I'd love it if there was an easy way to use this to create both if_ and unless_ tags. Something like: conditional_tags "my_tag" do |tag| #return a boolean false end which would then create if_my_tag and unless_my_tag tags.

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-25 Thread Manuel Meurer
>> I think that there is a place for these tags and I'd love it if there was >> an easy way to use this to create both if_ and unless_ tags. Something like: >> >> conditional_tags "my_tag" do |tag| >> #return a boolean >> false >> end >> >> which would then create if_my_tag and unless_my_tag tags

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-24 Thread Chris Parrish
Adam van den Hoven wrote: Sure that works except that it is entirely too late IMHO. It should be raised when you install the extension (say in the update or migrate tasks) since that is when you are dealing with extensions. If you were to do that for a live site running passenger then sudde

[Radiant] [ANN] Conditional Tags Extension v0.2

2008-10-24 Thread Chris Parrish
I just released v0.2 of the extension. Changes include: * Jeff's request for a "status" evaluator. The term "status" gets evaluated into a string ("draft", "reviewed", "published", or "hidden"). Keep these requests coming. * And I beefed up (fixed) the mechanism for other exten

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-24 Thread Adam van den Hoven
On 23-Oct-08, at 9:46 PM, Chris Parrish wrote: Adam van den Hoven wrote: What I mean is: 1) I decide to use your tag instead of creating my own special purpose if_ and unless tags. I document it in my README 2) Like some existing extensions do, I inject a page or a snippet or a layout into

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread Chris Parrish
Adam van den Hoven wrote: What I mean is: 1) I decide to use your tag instead of creating my own special purpose if_ and unless tags. I document it in my README 2) Like some existing extensions do, I inject a page or a snippet or a layout into the database that uses my extension and yours 3) A

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread Adam van den Hoven
On 23-Oct-08, at 3:35 PM, Chris Parrish wrote: Adam, Thank you so much for your feedback. I like your thinking. I do have some questions and comments for you and the rest of the gang. See below... While the proliferation of tags can be bad for users, Radiant lacks any mechanism for

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread Chris Parrish
Adam, Thank you so much for your feedback. I like your thinking. I do have some questions and comments for you and the rest of the gang. See below... While the proliferation of tags can be bad for users, Radiant lacks any mechanism for ensuring dependancies are installed making using thi

[Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread Chris Parrish
Hello all. I'm finally releasing an extension that I've mentioned over the last year on the list. I think that it has a lot of power and potential but I could use some input from the Radiant clan. The Conditional Tags Extension (http://github.com/SwankInnovations/radiant-conditional-tags-ext

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread Adam van den Hoven
Chris, I love the idea you've got going here. I haven't had a chance to try it but I have a few thoughts: While the proliferation of tags can be bad for users, Radiant lacks any mechanism for ensuring dependancies are installed making using this extension within my own potentially destabi

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread Chris Parrish
That's an easy one. It's because I didn't implement an evaluator for "status. Doh! I am working on a v0.2 right now and will add that. I think I'll implement "status" and have it return a string ("published", "draft", etc.) So to be more clear to everyone, in v0.1 I've implemented the foll

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread jeff
Ok, upon first use I am running into a few problems (Naturally since I said this would be useful for development-minded people and have therefore excluded myself as murphy's law dictates). I am trying to use the page status as the condition and have: ... However this results in an error on

Re: [Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread jeff
Eeexcellent While I can see the advantage of a small set of standard tags to make things easier for normal users the flexibility provided by these tags will come in useful for the more development-minded. Jeff Quoting Chris Parrish <[EMAIL PROTECTED]>: Hello all. I'm finally

[Radiant] [ANN] Conditional Tags Extension

2008-10-23 Thread Chris Parrish
Hello all. I'm finally releasing an extension that I've mentioned over the last year on the list. I think that it has a lot of power and potential but I could use some input from the Radiant clan. The Conditional Tags Extension (http://github.com/SwankInnovations/radiant-conditional-tags-ext