Le 12/01/2011 16:02, Nils Adermann a écrit :
On 01/12/2011 11:56 AM, Lukas Kahwe Smith wrote:
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.
A big +1 on both. As long as the .html is no longer implicit then. So
that index.twig.html would be the standard format.
Cheers
Nils
+1 for both (even for three as the array syntax can be usefull)
--
Christophe | Stof
--
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