Forum

Thread tagged as: Suggestions

Suggestion: Remove whitespace from HTML

It would be nice if there was an option for perch to output HTML that's stripped of whitespace. So at templating, one could write more manageable code, e.g. with more indents.

Urs Bräm

Urs Bräm 1 points

  • 7 years ago
Drew McLellan

Drew McLellan 2638 points
Perch Support

Not as straightforward as it sounds (think about <pre> tags and embedded JavaScript and CSS) but we'll keep it in mind.

Thanks! Not sure if it helps, but here's an open source extension we use for TYPO3

https://typo3.org/extensions/repository/view/sourceopt And as there's no viewable code there: https://dl.dropboxusercontent.com/u/11320047/sourceopt.zip