#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 James Wheare <[EMAIL PROTECTED]>):

 I actually find Django's flexibility here quite useful. Rather then
 enforce a homogenous file extension, it allows you to easily see what sort
 of file the template is actually being used to generate. Using .dtmpl or
 whatever means you have to open the file up to see whether it's
 javascript, xml, html, txt, csv or whatever. You already know it's a
 Django template because it's in the templtes directory. In order to keep
 this glance-ability, you'd have to name your templates like
 'main_html.dtmpl'
 
 So the argument is, should you enforce/encourage a convention for the sake
 of software at the expense of programmers? I'd err towards the human side
 of this conflict myself.
 
 That said, the Django docs could *suggest* a standard extension should
 template authors want to take advantage of painless syntax highlighting,
 while still allowing any extension to be used. Then it's the coder's
 choice, and admittedly once you've been working on a project for a while,
 you're likely to know which files are which.
 
 So ideally, the grammar detection features of TextMate shouldn't rely on
 file extension (I believe this is the plan for TextMate 2.0), but in the
 meantime, perhaps an agreed standard extension can be officially
 suggested. It should be made clear what the benefits are and that it is
 NOT enforced.
 
 I'd also like to argue strongly against .dhtml or anything that references
 an existing extension as this would just be confusing.

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