Re: [Fwd: PHPTAL - PHP Template Attribute Language]
| From: | Richard Wall | Date: | Tue, 18 Mar 2003 15:11:53 +0000 |
| Subject: | Re: [Fwd: PHPTAL - PHP Template Attribute Language] | ||
| References: | 1 2 3 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-14397@lists.php.net to get a copy of this message | ||
Laurent Bedubourg wrote:
Concerning template source retrieval, the system is actually based on the file system and your idea is quite interesting.
I think about 'SourceResolver' and 'SourceLocator' interfaces, something like :Sounds good.
The 'default' keyword is in my todo list, should be ok before the end of this week.Great.
Other cleaner way as use-macro content is evaluated before the macro call : <div metal:use-macro="macros.tpl.html/simpleList"> <tal:define="result articles" /> </div>Ah, yes, of course. Another feature to consider would be to allow for objects at the end of a tal path. If the object had a eg toString() method, this would get called. (As in Python __repr__() method)
Thousands thanks for your proposition, i surely need help (mainly tests at this time but may be development in a near future). There's also an huge work for documentation, i tryied to explain most of PHPTAL in the Documentation.txt file but there's more and more to say :)I'll try and do some more documentation and examples then, following the format described at... http://pear.php.net/manual/en/packages.skeleton.php Out of interest, how long have you spent on phptal sofar. It's a bit of a cheek, but I only ask because I want to try and gauge whether I'm a slow programmer:) Inspired by www.phppatterns.com etc, I've been trying to design my projects using patterns etc, but find that I get bogged down planning (and replanning) the design while not actually getting down to programming. -RichardW.