#2614: Pick a default extension for Django templates
-----------------------------+----------------------------------------------
   Reporter:  Allan Odgaard  |                Owner:  adrian                
     Status:  closed         |            Component:  Template system       
    Version:                 |           Resolution:  wontfix               
   Keywords:                 |                Stage:  Design decision needed
  Has_patch:  0              |           Needs_docs:  0                     
Needs_tests:  0              |   Needs_better_patch:  0                     
-----------------------------+----------------------------------------------
Comment (by Allan Odgaard):

 Also, could you please tell me what exactly you mean by "Filetype
 detection based on extension is flawed for the very reasons described in
 these comments"?
 
 The only thing I see is that a Django file can be used with more than just
 HTML -- but I already suggested a workaround: double extensions.
 
 By using double extensions, e.g. ".html.django" you will have ALL programs
 understand that this is a Django file (contrary to now, where NO programs
 can recognize the files) and IN ADDITION you have a bullet proof way to
 further have the program recognize that the Django file contains HTML (in
 addition to the Django-specific syntax) -- sure, not all programs
 understand double extensions (or can be made to), but the system
 gracefully degrades, i.e. those programs still get that it is a Django
 file, and for most programs (i.e. all but text editors), that is enough
 (yes, non-text editors also occasionally need to recognize file types).
 
 I am really baffled by the unwillingness to pick an extension for Django
 files. You don't want your OS to show a custom icon for these files? show
 that it is a Django file in the verbose file type field? have your editors
 automatically pick the Django mode when opening these files? etc.?
 
 All this is possible if an extension was chosen. Without one, we have,
 according to you, one editor which almost gets it right (I really fail to
 see how you can identify a file based on content though, the file could be
 empty).

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2614#comment:15>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" 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/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to