Hey guys- I'm for this as well, but it appears to me that the use of index.twig.html would now *just* be a convention. In other words, it's incumbent on the bundle developer to render the template as "'FooBundle:Default:index.twig'.$this->request->getRequestFormat()". So, the implicit "standard" would be simply "index.twig" (which would be rendered for all formats), though the best-practice would be "index.twig.FORMAT".
Ryan Weaver Lead Programmer - iostudio - Nashville, TN http://www.iostudio.com http://www.thatsquality.com Twitter: @weaverryan On Wed, Jan 12, 2011 at 1:04 PM, Christophe COEVOET <[email protected]> wrote: > 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]<symfony-devs%[email protected]> > For more options, visit this group at > http://groups.google.com/group/symfony-devs?hl=en > -- 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
