fabpot/Twig — Issue #624: Global flag for spaceless
Author: Fender123
Created: 2012-02-06 09:14:14+00:00
State: open

Hey,

i would like an option to set the output to spaceless to save bandwith by serving less whitespaces.
But on the other side I want to have structured HTML while developing.
So it would be nice to have a flag which can be set to true in production mode to strip all whitespaces from the output (it should act like a spaceless tag at the beginning and the corresponding end tag at the end)

I think this should be a flag for the Twig_Environment.

Looking forward to here your comments