On 3/20/06, gismo <[EMAIL PROTECTED]> wrote:
>
> you picked .html as extension for template, but it is not a good idea.
> Because it is confusing for editors, when you edit files with .html
> extension, editors think it is an html file and your environment
> setting up as an html enviroment. When people write extensions for
> editors (like emacs or vi) they need a unique extension for files.
>
> You should pick something unique, like djml, djhtml or something.
>
You can change the extension of the template files. Just set
TEMPLATE_FILE_EXTENSION = '.whatyouwant' as settings.py, that's ok.
And I don't think the .html will confuse the editor. And the most
situation is django template indeed act as html file, just as php,
jsp, etc.
>
> About first impression of somebody who is searching a web framework:
> I like your framework generally, especially application, project
> seperation is a good idea for DRY. I also inspected rails, but python
> is more closer language to me and I want to stick on a python based
> framework.
> But I have some critics. First, about your templating language. It
> could be more elegant, <%= someting.id %> is more elegant than {{
> someting.id }} and more readable.
>
I'v used many different template languages, and what you suggested
just like jsp or snakelets' template language. Why should we define
the template tag like <%= %>, and I think it's just a taste thing.
Django template is simple and powerful, there are only two tags
definition just now, I think is enough. Maybe {# #} is better. {{ }}
is the same as <%= %>.
--
I like python!
My Blog: http://www.donews.net/limodou
NewEdit Maillist: http://groups.google.com/group/NewEdit
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django 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/django-developers
-~----------~----~----~----~------~----~------~--~---