plush icon indicating copy to clipboard operation
plush copied to clipboard

Syntax to trim trailing whitespace?

Open hdm opened this issue 5 years ago • 1 comments

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>

hdm avatar Mar 19 '19 14:03 hdm

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment. Otherwise, this will be closed in 7 days.

github-actions[bot] avatar Sep 27 '22 03:09 github-actions[bot]