On Tue, Aug 23, 2011 at 12:09 PM, Gelonida N <gelon...@gmail.com> wrote:
> Hi,
>
> I'm rather new to Django and just start working with a little more with
> templates.
>
> I wondered how to make a distinction between html files and html templates.
>
> Shall I used different suffixes or is the directory location enough.
>
> If I don't have different file suffixes, how do you teach your editor,
> when editing an html file and when editing a template file.
>
>
> I am using vim
>
> Are there any 'best practices'?
>

I tell vim (in ~/.vimrc) to assume that files named */templates/*.html
are django templates:

au BufRead */templates/*.html set ft=htmldjango sw=2 ts=2

This is good enough for me, you may want to adjust the pattern if you
often edit html files within a directory named templates that are not
django templates.

Cheers

Tom

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to