Skip to content

Syntax to trim trailing whitespace? #89

@hdm

Description

@hdm

It would be nice if there was a syntax that trimmed the whitespace from template when using an evaluated value (and did so automatically for <% %>). This is implemented in ERB (ruby) as the "<%- %>" syntax (https://stackoverflow.com/questions/4632879/erb-template-removing-the-trailing-line).

For example, it would be great if the following template returned <pre>Hello</pre>

<pre>
<%- "Hello" %>
</pre>

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestproposalA suggestion for a change, feature, enhancement, etc

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions