Skip to content

Strange @partial whitespace #62

Description

@erburns-fcn

In the example, there is this snippet:

<!-- Partials -->
@partial example_partial

<!-- Partials with positional args -->
@partial mailto(.user.email, "Welcome to Jetzig!")

Which is rendered as:

<!-- Partials --><span>An example partial</span>

<!-- Partials with positional args --><a href="mailto:user@example.com?subject=Welcome to Jetzig!">user@example.com</a>

I find this whitespace confusing. Shouldn't it be something like this?:

<!-- Partials -->
<span>An example partial</span>

<!-- Partials with positional args -->
<a href="mailto:user@example.com?subject=Welcome to Jetzig!">user@example.com</a>

It looks like that is what it used to be until the test was changed in 7ff4f58 with no explanation. What is the reasoning behind this?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions