I have been trying out twig templates. I was pretty sceptical at first but we are doing an app where it would be great if the templates where auto escaped and the syntax keeps everything much more tidy which is nice.
Anyway, I have only had partial success. Grahams plugin seems really excellent but as it stands you can't leave auto escaping on. Also the elements are not getting view variables and there dosn't seem to be a way to pass the element variables explicitly.
Does anybody have any advice on this? Is the plugin the best way to go? Is using Twig a sensible thing to do? It would be great to have but i don't want to introduce a ton of problems because cake and twig just arn't meant to play together .
I'm using cake 2.1.2 and twig 1.4.0
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment