AW: [PHPTAL] Logical operators in PHPTAL

2010-09-30 Thread Per Bernhardt
I would love to see this feature, too!
Was it no positive feedback or no feedback at all?
 
Do you think it is hard to implement? Does it break backwards compatibility?
 
I would be willing to help with the implementation...
 
Per



Von: phptal-boun...@lists.motion-twin.com 
[mailto:phptal-boun...@lists.motion-twin.com] Im Auftrag von romtek
Gesendet: Donnerstag, 30. September 2010 07:45
An: Template Attribute Language for PHP
Betreff: Re: [PHPTAL] Logical operators in PHPTAL


2010/9/29 Kornel Lesiński kor...@aardvarkmedia.co.uk


On 29 Sep 2010, at 06:33, romtek wrote:

 I'd like to be able to use a bit more simple logic in my templates. 
Being able to use AND, OR, and NOT would be good. E.g. 
tal:condition=event/featured AND event/upcoming, tal:condition=NOT 
event/featured AND event/upcoming

 I remember there was an activity to extend the library to make PHPTAL 
more expressive. What's happened to that?


I've asked about this on the mailinglist and didn't get positive 
feedback, so the feature got shelved.




I remember that it was received sufficiently well. If you have some time and 
desire to implement these features, then I think you should, Kornel.

___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: AW: [PHPTAL] Logical operators in PHPTAL

2010-09-30 Thread Kornel Lesiński

On 30-09-2010 at 15:45:46 Per Bernhardt p...@webfactory.de wrote:


I would love to see this feature, too!
Was it no positive feedback or no feedback at all?


http://lists.motion-twin.com/pipermail/phptal/2009-November/001967.html


Do you think it is hard to implement?


It requires writing a mini compiler with parser that supports operator  
priorities. Maybe a bit more complex parser if it were to support php:  
modifier well.


I've got basic parser already.


Does it break backwards compatibility?


It would break compatibility with TALES paths that use spaces, but I  
presume those are very rare, and could be worked around by using  
/foo/${string: part with spaces }/bar.



I would be willing to help with the implementation...


Great!

I think the next step would be to work out syntax exactly:

http://phptal.org/wiki/doku.php/improvedtales

--
regards, Kornel

___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


Re: [PHPTAL] Logical operators in PHPTAL

2010-09-29 Thread Kornel Lesiński
On 29 Sep 2010, at 06:33, romtek wrote:
 
 I'd like to be able to use a bit more simple logic in my templates. Being 
 able to use AND, OR, and NOT would be good. E.g. 
 tal:condition=event/featured AND event/upcoming, tal:condition=NOT 
 event/featured AND event/upcoming
 
 I remember there was an activity to extend the library to make PHPTAL more 
 expressive. What's happened to that?

I've asked about this on the mailinglist and didn't get positive feedback, so 
the feature got shelved.

-- 
regards, Kornel


___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal


[PHPTAL] Logical operators in PHPTAL

2010-09-28 Thread romtek
Hi,

I'd like to be able to use a bit more simple logic in my templates. Being
able to use AND, OR, and NOT would be good. E.g.
tal:condition=event/featured AND event/upcoming, tal:condition=NOT
event/featured AND event/upcoming

I remember there was an activity to extend the library to make PHPTAL more
expressive. What's happened to that?

Roman
___
PHPTAL mailing list
PHPTAL@lists.motion-twin.com
http://lists.motion-twin.com/mailman/listinfo/phptal