InGenR icon indicating copy to clipboard operation
InGenR copied to clipboard

More control over whitespace in generated templates

Open rameshdavid opened this issue 7 years ago • 1 comments

Love this project.

I think one feature that would be very helpful here is better control over the whitespace in generated files.

In many cases we end up with weird formatting or indentation in the expanded templates if the templates themselves have indented blocks.

I am not sure what is the best way to tackle this but I think this can be a major problem for whitespace sensitive languages like python, coffeescript, F# etc.

rameshdavid avatar Oct 19 '18 07:10 rameshdavid

Yeah, this is something that definitely needs improvement.

I am contemplating moving to nunjucks as the primary templating solution as it supports better control over whitespace in generated code.

lorefnon avatar Oct 19 '18 09:10 lorefnon