alanshaw / grunt-include-replace

Grunt task to include files and replace variables. Allows for parameterised includes.
MIT License
200 stars 45 forks source link

Keep the indent #55

Open MikeVaz opened 9 years ago

MikeVaz commented 9 years ago

Source:

<div>
             @@include('test.html')
</div>

Result:

<div>
Contents of test.html without a original indent
</div>
janhaum commented 8 years ago

Will this be fixed soon?

ghost commented 8 years ago

You can actually keep it, if file that you include (test.html) have linebreak as first character in file)

NexusNull commented 5 years ago

I was looking for a similar feature but in the end settled for putting the code through a jsbeautifier.