Skip to content

An inline partial should not be indented #715

@hail2u

Description

@hail2u

The content of an inline partial is indented in v3.0.2 (of course not in v3.0.1). People does not want these extra white spaces in an HTML file.

test.json:

{}

test.mustache:

    <div>{{> partial}}</div>

partial.mustache:

This is a partial.

Run:

$ mustache -p partial.mustache test.json test.mustache
    <div>    This is a partial.</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions