kremso/serenity

Removing line breaks in merged docment

Opened this issue · 0 comments

I love your plugin - it is absolutely amazing. I have it up and running almost immediately.

Lets say I have the following in my template:

<-- beginning of template -->
Clients
{% for client in Client.all %}
{% if client.type == 'Active' %}
{%= client.name %}
{% end %}
{% end %}
<-- end of template -->

In the merge file I end up with:

<-- beginning of merge file -->
Clients

Client 1

Client 2

Client 3
<-- end of merge file -->

As you can see there are line breaks in there where the for loops are. I have reied using {% for_loop -%} (note the minus sign - hopeful I know).

Is there any way to avoid this from happening?