[PHPTAL] Recommendation for the dynamic definition data encoding in source of template.

2009-04-23 Thread CREATIVE0809
--- a/State.php +++ b/State.php @@ -109,7 +109,7 @@ class PHPTAL_Php_State } private function _interpolateTalesVarsEscaped($matches) { -return '?php echo phptal_escape('.phptal_tale($matches[1]).', ENT_QUOTES, \''.$this-_encoding.'\');?'; +return '?php echo

[PHPTAL] Recommendation for the dynamic definition data encoding in source of template.

2009-04-24 Thread CREATIVE0809
Thanks for the patch, however I'm not going to apply it, because it introduces unnecessary runtime overhead, and doesn't solve the problem entirely (there are other places which depend on encoding). Instead I've made PHPTAL reparse the template whenever encoding is changed. -- regards,