gruntjs / grunt-contrib-pug

Compile Pug templates.
http://gruntjs.com/
MIT License
328 stars 77 forks source link

Options to configure pretty-printing #178

Closed alexreg closed 7 years ago

alexreg commented 7 years ago

Could we get options to configure pretty-printing? Such as indentation size, or whether to use tabs for indentation.

shinnn commented 7 years ago

as indentation size

https://github.com/gruntjs/grunt-contrib-pug#pretty

whether to use tabs for indentation.

Submit a pull request to pug (not grunt-contrib-pug) if needed.

alexreg commented 7 years ago

Okay. Surely options will need to be added on grunt-contrib-pug too, even if pug supports it?

shinnn commented 7 years ago

No.

shinnn commented 7 years ago

even if pug supports it

Pug team deprecated an option to set indent size and character. If you still want to use it, you can contribute to pug, mature the option and undeprecate it.

alexreg commented 7 years ago

Ah. So you're saying that options that aren't recognised by grunt-contrib-pug are forwarded on to pug itself?

shinnn commented 7 years ago

Here is not a support forum but an issue tracker. Your question should be asked on StackOverflow instead.

alexreg commented 7 years ago

Well, consider it a documentation request, since the documentation is lacking in this regard!