On Thu, 13 Jan 2011 08:11:59 -0600, ryan weaver <[email protected]>
wrote:
> 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

No, the standard will be to explicitly give the full name of the template
instead of using magic to find the good template when using
'FooBundle:Default:index.twig' which is the case currently.
You can use "FooBundle:Default:index.twig.html" instead of
"'FooBundle:Default:index.twig'.$this->request->getRequestFormat()" if you
don't need to support multiple formats in your action.

-- 
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

Reply via email to