Re: [PHPTAL] automated documentation for templates?

2008-05-30 Thread Kornel Lesinski
On Thu, 29 May 2008 20:25:51 +0100, Jason - USL [EMAIL PROTECTED] wrote: For example, if my template designer creates something like tal:repeat=option options, my php developer would see a corresponding line in the documentation saying that the variable 'options' needs to be set, and it needs

Re: [PHPTAL] Lower than as char in javascript

2008-05-30 Thread Guillaume Lecanu
Le jeudi 29 mai 2008 à 22:55 +0200, Christian Welzel a écrit : Hi there, is there a way to insert a lower than in phptal, which is printed as lower than in the source code? My problem: i have a javascript part in my template where i need a lower than in some cases ... ( if(foo 0) { do();

Re: [PHPTAL] automated documentation for templates?

2008-05-30 Thread Guillaume Lecanu
Le jeudi 29 mai 2008 à 22:14 +0200, Iván -DrSlump- Montes a écrit : NaturalDocs [1] is a very flexible documentation system which can be configured to suit almost any language [2]. The documentation could look something like this: !-- Iterable: options Members: label - The

Re: [PHPTAL] automated documentation for templates?

2008-05-30 Thread Guillaume Lecanu
Le vendredi 30 mai 2008 à 11:19 +0200, Iván -DrSlump- Montes a écrit : Guillaume, With something like this the comment won't show up tal:comment tal:replace=null!-- Comment: Here is a comment which won't show up in the generated HTML --/tal:comment Ok, why not. Anyway, PHPTAL has a

Re: [PHPTAL] problem with proteced function

2008-05-30 Thread Kornel Lesinski
On Fri, 30 May 2008 13:20:38 +0100, anru chen [EMAIL PROTECTED] wrote: zend framework has a Zend_Config class, in that class, __isset is a protected function. so if i am pass a Zend_Config object to PHPTal, and try to do some thing like a href=www.foo.com tal:attributes=href config/webhost

Re: [PHPTAL] Re: PHPTAL Digest, Vol 39, Issue 13

2008-05-30 Thread Anton Andrievskij
Patrick, are you developer of PHPTAL or not? Anton On Fri, May 30, 2008 at 5:29 PM, Patrick Burke [EMAIL PROTECTED] wrote: I love PHPTAL, and the self documentation thread going on is a very interesting idea. The requirement that brought up self-documentation seems like a development

[PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
Hi, guys. How can I specify multiple conditions using AND logical operator and php: for one of the parts? I'm trying this but does not works: tal:condition=exists: products AND php:count(products) == 0 Thanks, Anton ___ PHPTAL mailing list

Re: [PHPTAL] Re: developer of PHPTAL or not

2008-05-30 Thread Anton Andrievskij
I agree about 'marketing friendly' too. PHPTAL guys, lets improve on this part. I'll help doing my best for this task. Anton On Fri, May 30, 2008 at 7:28 PM, Iván -DrSlump- Montes [EMAIL PROTECTED] wrote: I've been trying to push for PHPTAL use in several projects in the last years but I

Re: [PHPTAL] Re: PHPTAL Digest, Vol 39, Issue 13

2008-05-30 Thread Kornel Lesinski
On Fri, 30 May 2008 15:29:10 +0100, Patrick Burke [EMAIL PROTECTED] wrote: I'm seeing PHPTAL at a tipping point. I wasn't able to get PHPTAL into many environments in the last couple years because big, fat, ugly Smarty was sitting in the templates directories already. Perhaps writing

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
PHPTAL rewrites code in php: expressions to use TAL variables, so it will work fine. Please can you explain a bit more about this? How it works? On Fri, May 30, 2008 at 7:47 PM, Kornel Lesinski [EMAIL PROTECTED] wrote: On Fri, 30 May 2008 17:36:34 +0100, Anton Andrievskij [EMAIL PROTECTED]

Re: [PHPTAL] Re: PHPTAL Digest, Vol 39, Issue 13

2008-05-30 Thread Anton Andrievskij
I think it is better to get new developers with new programming logic to use PHPTAL. Then you will have more strong and professional community. Smarty must go to the syncope together with its old-type programmers. As for me - I never used Smarty because I found it ugly and stupid the first time I

Re: [PHPTAL] Re: developer of PHPTAL or not

2008-05-30 Thread Kornel Lesinski
On Fri, 30 May 2008 17:28:18 +0100, Iván -DrSlump- Montes [EMAIL PROTECTED] wrote: I've been trying to push for PHPTAL use in several projects in the last years but I haven't been very successful. I ended up writing my own version from scratch a couple of months ago, leveraging new PHP 5.3

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Kornel Lesinski
On Fri, 30 May 2008 17:59:58 +0100, Anton Andrievskij [EMAIL PROTECTED] wrote: PHPTAL rewrites code in php: expressions to use TAL variables, so it will work fine. Please can you explain a bit more about this? How it works? There's a simple PHP parser that modifies the code (see

Re: [PHPTAL] Re: developer of PHPTAL or not

2008-05-30 Thread Iván -DrSlump- Montes
Sure I don't mind to share, it's just that I've been way to busy with other projects and in its current state is not usable. I was in the middle of a huge refactoring when I stopped working on it. The repository is at: http://svn.pollinimini.net/drtal/trunk And generated documentation at:

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Christoph Frick
On Fri, May 30, 2008 at 07:04:47PM +0300, Anton Andrievskij wrote: How can I specify multiple conditions using AND logical operator and php: for one of the parts? I'm trying this but does not works: tal:condition=exists: products AND php:count(products) == 0 in python an empty list is

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread Anton Andrievskij
The aim is to avoid setting always products. On Sat, May 31, 2008 at 12:03 AM, Christoph Frick [EMAIL PROTECTED] wrote: On Fri, May 30, 2008 at 07:04:47PM +0300, Anton Andrievskij wrote: How can I specify multiple conditions using AND logical operator and php: for one of the parts? I'm

Re: [PHPTAL] Multiple conditions

2008-05-30 Thread anru chen
how about check path first tal:conditions = exists: product/notEmpty then use tal:replace or tal:contents to output actully product? so you can push that and logic into your business model rather that wirte it in a view model regards On Sat, May 31, 2008 at 10:17 AM, Anton Andrievskij [EMAIL