Re: [PHPTAL] default macro file

2009-02-10 Thread Kornel Lesiński
On 30.01.2009, at 18:09, romtek wrote: On Fri, Jan 30, 2009 at 4:57 AM, Kornel Lesiński kor...@aardvarkmedia.co.uk wrote: On 30-01-2009 at 03:13:16 romtek rom...@gmail.com wrote: Assuming that unwinding when handling exceptions is more time consuming than using if/else mechanism, wouldn't

Re: [PHPTAL] default macro file

2009-01-30 Thread Kornel Lesiński
On 30-01-2009 at 03:13:16 romtek rom...@gmail.com wrote: Assuming that unwinding when handling exceptions is more time consuming than using if/else mechanism, wouldn't it be better to build this ability into PHPTAL? Yes, exceptions are slower, but it doesn't make noticeable difference

Re: [PHPTAL] default macro file

2009-01-30 Thread romtek
On Fri, Jan 30, 2009 at 4:57 AM, Kornel Lesiński kor...@aardvarkmedia.co.uk wrote: On 30-01-2009 at 03:13:16 romtek rom...@gmail.com wrote: Assuming that unwinding when handling exceptions is more time consuming than using if/else mechanism, wouldn't it be better to build this ability into

Re: [PHPTAL] default macro file

2009-01-27 Thread Levi Stanley
Sweet, that is even better. Best regards, Levi Stanley Kornel Lesiński wrote: On 26-01-2009 at 19:53:39 Levi Stanley l...@eneservices.com wrote: admirau: class MyTemplateFramework extends PHPTAL { private $default_macro_file; public function setDefaultFile($default_macro_file){

[PHPTAL] default macro file

2009-01-26 Thread admirau
Hello, It would be very helpful to have something like default macro file. I know, that people asked for this feature before. For example: when only name of the macro is specified, and this macro is not found in current file, look for this macro in default template file.