e-picas / grunt-nunjucks-render

A Grunt plugin to parse Nunjucks templates
Apache License 2.0
3 stars 2 forks source link

How to remove extra lines or spaces? #1

Closed mrmlnc closed 8 years ago

mrmlnc commented 9 years ago

For example, this code:

<ul>
  {% for name, href in _menu.navbar %}
    <li>{{ name }}</li>
  {% endfor %}
</ul>

Compiles to:

<ul>

  <li>Home</li>

  <li>Test</li>

</ul>

The documentation states that there are options, enable remove extra lines or spaces (if i understood correctly):

How to use these options in your plugin? Or should I use something like Pretty HTML for Grunt?

I apologize if this question is considered in the README, but i failed to find him there.