juvenn / mustache.vim

Vim mode for mustache and handlebars (Deprecated)
github.com/mustache/vim-mode
125 stars 14 forks source link

Mustache indentation #7

Open devth opened 12 years ago

devth commented 12 years ago

mustache.vim should know how to indent opening and closing mustache tags:

{{#items}}
  {{foo}}
{{/items}
juvenn commented 12 years ago

Currently, the indent part is just borrowed from html indent, and I assumed the plugin is used in html environment only. This kind of indent is a bonus feature, that I may work on it some time later.

Pull requests are very well welcomed, if you can work it out.