On Tue, Sep 22, 2009 at 8:41 AM, Steven Roussey <[email protected]> wrote:
>
>> The goal would be to write your thing as:
>>
>> {.section post}
>>   Title: {title}
>>   Body: {body}
>>   {section @ is-moderator?}   <-- The problem here is that the
>> predicate is passed "post" and has no other context
>>     <button id="{id}">
>>   {.end}
>> {.end}
>
> Actually, I add a few extras like parent and index:
>
>  {.section post}
>   Title: {title}
>   Body: {body}
>   {section @ @.parent.is-moderator?}

Why do you need that?  I think it's a lot simpler if you if you leave
out the "predicate_scope" and just have the predicate have access to
the whole stack of namespaces, as I described in the bug.

Like I said, I don't think you need that third degree of freedom.
It's more complex without adding any power, and it's not all that
readable.

Andy

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "JSON 
Template" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/json-template?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to