dmarcotte/idea-handlebars — pull request #27 by dmarcotte (2012-11-08 15:55:59+00:00)
Title: Formatter! (WIP)

We're on the home stretch on adding this key piece of functionality.

I finally puzzled out how to implement a template formatter. We can now intermingle formatting 'staches with the built-in HTML formatting (and, once #26 is licked, the formatting of whatever language we are templating).

We will indent children of block mustaches in the natural way, i.e.:
```
{{#foo}}
INDENTED_CONTENET
{{/foo}}
```
and we will also have the expected `Enter` handlers which place your caret at the correct position on the next line, and some mechanism to control the format settings (a plugin-specific settings page? Inherit indent settings of the templated languge? Still TBD).

Still some work todo before this is ready for primetime, but it's definitely on its way.