I think it's not only about IDE's. Let's say template engine is php, then in my understanding it would be index.php.html, which wouldn't be a bit confusing semantically. That's why we use extensions - to define what file type it is.
I would vote for .phtml extension. It would make a lot of sense as it will be compatible with html and php templates, and also twig. What is more, IDEs won't have a problem with that. -- Aurelijus ValeiĊĦa On Wed, Jan 19, 2011 at 10:29 AM, Lukas Kahwe Smith <[email protected]>wrote: > > On 19.01.2011, at 10:25, Henrik Bjornskov wrote: > > > Vim doesnt do this aswell so you would have to write a autocmd for > highlight for all template renderes that you can come across to get > highlighting. > > > > Besides the content inside the file you are editing is not HTML XML JSON > etc. it is twig or php or smarty (tpl) and the file extension should reflect > that. There is no need to change the way the editors work because some here > thinks its the best thing. Also the WTF factor of this for newcommers will > be far more wierd than having the format template auto choosen > > Well my twig templates actually have mostly non twig tags. But I did > mention the issue before we did the rename. Its just that usually if someone > adds twig support to an IDE it will also support inlined other relevant > formats like html/js etc but not the other way around. Like the html > highlighting will not trigger twig highlighting, unless the IDE supports > manually configuring "twig.html" to use a different highlighting than > "html". > > 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]<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
