Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread GRolf
It sounds interesting and an improvement from previous versions. However, I'd like to see some tutorials putting this to work. When do you use those things, how can they be applied to improve your templates and/or code etc... What PHPTal lacks is this kind of documentation - the manual is

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 08:14:31 GRolf ger...@pictureparking.com wrote: It sounds interesting and an improvement from previous versions. However, I'd like to see some tutorials putting this to work. When do you use those things, how can they be applied to improve your templates and/or code etc...

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 08:32:24 Murat Çorlu muratco...@gmail.com wrote: Sounds like good. Good job! I can suggest a solution to running filters with having to chance to exclude some tags. For example minify html, css and javascript content except textarea tags and some special scripts: html

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 10:20:59 Iván -DrSlump- Montes drsl...@pollinimini.net wrote: The API looks ok to me, just one thing, since it's not a runtime operation (in the sense that a php file is generated for the template), I think it'll be great if it used something along the lines of

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Iván -DrSlump- Montes
Hi again, Find attached a simple implementation of the plugin loader using a subset of Zend Framework's api. Check ZF docs [1] for documentation, it should behave the same way. The use with PHPTAL might be something like this: // Get the standard instance of the loader $loader =

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Kornel Lesiński
On 16-09-2009 at 14:45:39 Iván -DrSlump- Montes drsl...@pollinimini.net wrote: Find attached a simple implementation of the plugin loader using a subset of Zend Framework's api. Check ZF docs [1] for documentation, it should behave the same way. The use with PHPTAL might be something

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Iván Montes
On 9/16/09 4:56 PM, Kornel Lesiński wrote: On 16-09-2009 at 14:45:39 Iván -DrSlump- Montes drsl...@pollinimini.net wrote: // Get the standard instance of the loader $loader = $tpl-getFilterLoader(); // and add a new location for filters $loader-addPrefixPath('My_Filter',

Re: [PHPTAL] PHPTAL prefilters

2009-09-16 Thread Iván Montes
On 9/16/09 6:03 PM, Kornel Lesiński wrote: On 16-09-2009 at 16:30:35 Iván Montes drsl...@pollinimini.net wrote: I'm not too fond in how the caching works so I might be completely wrong here. Why are prefilters needed to compute the caching logic? As I understand it, the filters are run at