Which package do you use to auto-indent handlebar code? [Sublime]

My current auto-format/auto-indent package on Sublime Text 3 always messes up when trying to format the moustache syntax. Any recommendation?

I use HTML-CSS-JS Prettify and set HTML preferences to “indent_handlebars”: true


Oh wow, that works really well. I was using the same package, but didn’t know there is a setting for it.

add these two changes in the file .jsbeautifyrc under the HTML-CSS-JS Prettify directory.

"allowed_file_extensions": ["htm", "html", "xhtml", "shtml", "xml", "svg","hbs"],
"indent_handlebars": true, // e.g. {{#foo}}, {{/foo}}