Handlebars.Net
Handlebars.Net copied to clipboard
Indentation
How about an option to preserve indentation for partials?
Example
public class {{Name}} {
{{#each}}
{{>Property}}
{{/each}}
}
public {{Type.Name}} {{Name}} {
get;
set;
}
Output
var config = new HandlebarsConfiguration { PreventIndent = false };
public class Foo {
public object Bar {
get;
set;
}
}
var config = new HandlebarsConfiguration { PreventIndent = true };
public class Foo {
public object Bar {
get;
set;
}
}
PR always welcome! We already have some plumbing in-place to manage whitespace during the parsing and conversion phases, perhaps that can be leveraged.
I'll look into that next week
Any news on this?