Re: [PHPTAL] protecting html templates

2008-11-07 Thread Kornel Lesiński
On 07-11-2008 at 09:56:22 Krzysztof Sikorski [EMAIL PROTECTED] wrote: tal:block omit-tag=?php exit; ?/tal:block Sorry, it should be tal:block omit-tag=1 replace=?php exit; ?/tal:block. BTW: omit-tag is never needed on tal:block, and it's redundant with replace. -- regards, Kornel

[PHPTAL] protecting html templates

2008-11-07 Thread Zbyněk Nevrlý
Hi, I am using PHPTAL for seperate business logic from presentation. So there are controllers, model classes and views (HTML templates). Problem is there views/*.html are accessible from direct calling through URL (I need to have views in public_html for Javascript and Ajax dependencies). Is there