Skip to content

Indentation #167

@mdschweda

Description

@mdschweda

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;
}

}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions