We have moved our forum to GitHub Discussions. For questions about Phalcon v3/v4/v5 you can visit here and for Phalcon v6 here.

What about spaceless?

https://github.com/phalcon/cphalcon/issues/2668

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.

https://docs.phalcon.io/en/latest/reference/volt.html#extensions

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.