What about spaceless?


We really need it!

I have one stupid idea how we can do it. We can create two tags. First tag will be perform php function ob_start(). Second tag will be get buffer content and process it. How this decision is bad? Not good or very bad? Can be there any conflicts?

Just an idea, maybe you could explore creating new Volt extension that implements compileStatement method where you can declare {% spaceless %} .. {% endspaceless %} as a new statement.


Phalcon 2.x though ..

edited Oct '15

Tried this. Got this error:

Syntax error, unexpected token IDENTIFIER(spaceless) in template.volt

I guess we can't use any custom statement name that non defined in phalcon.