[PHPTAL] Modifiers Code

2009-01-08 Thread Trent Moyer
I recently started using PHPTAL and it has proven very useful. However, I am having some trouble with the custom modifiers. I would like to use the following or something similar: ... HTML Code ... The intent is to make every other row have a class="alt". This is my code for the modifier: f

[PHPTAL] Security issues with a CMS

2009-01-08 Thread Alister Cameron
Folks, As per my last emails, I have been working on a WordPress theme that amounts to a rather radical departure for WordPress, in terms of implementing a templating engine. The response, in part, is to suggest that it is a security breach and that there's nothing to stop people injecting JS and

Re: [PHPTAL] Security issues with a CMS

2009-01-08 Thread Iván -DrSlump- Montes
PHPTAL is pretty security conscious as far as a template engine concerns go. It does automatic output escaping unless you use the 'structure' modifier in tales expressions, which is more than most other templating engines. The only point I'm aware of where PHPTAL increases the security risk is wit

Re: [PHPTAL] Modifiers Code

2009-01-08 Thread Iván -DrSlump- Montes
I think to recall that I could do zebra striping with TAL using something like this: That should give you class names of 'row0' and 'row1', which you can style with CSS. Not the cleanest solution but it did the job. /imv On Thu, Jan 8, 2009 at 10:47 PM, Trent Moyer wrote: > I recently start