afscrome / IronVelocity

A wrapper around NVelocity (a port of Apache Velocity) using the DLR to provide higher performance template execution.
MIT License
6 stars 1 forks source link

Whitespace optimisations #20

Closed afscrome closed 8 years ago

afscrome commented 9 years ago

Velocity is often used for HTML templates, or other scenarios in which whitespace is generally insignificant. In some cases we can significantly reduce the size of the template output by trimming out whitespace in the template at parse time using the following rules:

This should be made optional as there may be scenarios in which whitespace is significant and shouldn't be modified at all.