How about an option to preserve indentation for partials?
See Reference: preventIndent
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;
}
}
How about an option to preserve indentation for partials?
See Reference: preventIndent
Example
Output
var config = new HandlebarsConfiguration { PreventIndent = false };var config = new HandlebarsConfiguration { PreventIndent = true };