On 12.01.2011, at 11:18, Fabien Potencier wrote:
>> Again the above pull removes this behavior entirely. Basically it would go
>> back to doing more or less a 1:1 mapping, what you ask for is then what you
>> get. Now you might still want to have some automatic template switching
>> based on the format. Then just do:
>> $this->render('FooBundle:Default:index.'.$this->request->getRequestFormat().'.twig);
>
> If we go down this road, why not make the format the latest part of the
> template name? That way, we gain automatic syntax highlighting in IDEs.
Yeah, I guess it also makes sense. When I review a Bundle it will be more
important to me to see which formats have templates and not so much which
renderer is used. Not sure if this reduced the chances for getting syntax
highlighting for twig embedded in HTML, but so it goes.
regards,
Lukas Kahwe Smith
[email protected]
--
If you want to report a vulnerability issue on symfony, please send it to
security at symfony-project.com
You received this message because you are subscribed to the Google
Groups "symfony developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/symfony-devs?hl=en