On Tue, Dec 1, 2009 at 7:33 AM, Steve Howell <[email protected]> wrote:
> Just following up on this a few days later, in case it got lost in the
> shuffle due to the weekend and U.S. holiday.
>
> On Nov 27, 2:18 pm, Steve Howell <[email protected]> wrote:
>> I am wondering if there is a style guide anywhere for writing Django
>> templates.  Also, are there programs to automatically format your
>> templates...to indent block tags, for example?  I know there are
>> autoformatters for HTML, but I am not aware of any tools that handle
>> Django tags.  Also, it would be nice to have a command line tool that
>> detected unbalanced tags before rendering occurs, knowing, of course,
>> that that task is a little complicated due to conditionals.
>>
>> [...]
>

vim 7.2 comes with two syntax, highlighting and indentation modes for django.

"set ft=django" for just django template syntax highlighting/indentation
"set ft=htmldjango" for mixed HTML/django template syntax highlighting

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 [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-users?hl=en.


Reply via email to