#2614: Pick a default extension for Django templates
-----------------------------+----------------------------------------------
 Reporter:  Allan Odgaard    |        Owner:  adrian
     Type:  enhancement      |       Status:  new   
 Priority:  normal           |    Milestone:        
Component:  Template system  |      Version:        
 Severity:  normal           |   Resolution:        
 Keywords:                   |  
-----------------------------+----------------------------------------------
Comment (by lukeplant):

 Personally I wouldn't use any special extension.  If I'm creating HTML
 templates, then I'd usually want emacs to display the files in HTML mode,
 so .html would be the obvious extension to use -- anything else I'd have
 to configure extra, and I'd need a different one for every type of file I
 use Django templates for.  The extension should be the same as the
 underlying type of text the template is for.  It could possibly be
 .django.html and .django.txt, allowing editors to distinguish between them
 if necessary.
 
 Second, as far as I know Django never actually creates template files for
 the developer, so how does picking a default file extension change
 anything?
 
 Finally, to support this as you describe, the Django installer would have
 to set up these file types, the process for which is very different on
 GNOME, KDE, Mac and Windows, and whether those settings are respected
 depends on your editor anyway.  It would be very strange IMO for a library
 (which is what Django is ultimately) to be installing file types like
 applications do, especially for Python libraries which are usually
 packaged in such a way that 'unpack the tarball' is a valid installation
 procedure.
 
 BTW, in emacs you can get the django mode to be used by adding {% comment
 %}-*-django-*-{% endcomment %} as the first line of a template.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/2614>
Django <http://code.djangoproject.org/>
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to