[VOLT] Support for embedding blocks into other blocks
With inheritance of multiple files like a.volt extends b.volt extends c.volt, I have to use embedding blocks. Otherwise there's no profit to use inheritance more than one nesting level.
The same question. Is there a plans to implement this feature?
Greetings! Is there any plans to implement this feature?
Hi, is there any plans? I think this feature is important.
+1
I upvote for the feature
Agreed. It would be nice to have a block inside an if statement.
I think it's very useful feature. Waiting for this!
Actually this is why i'm using twig instead of volt
+1 for this great feature
Any improvements after almost a year? As for me, this is the most needed missing feature in Volt
This will be implemented in Phalcon 2 with Zephir
At this moment, Phalcon 2 is missing some features from 1.x and still not stable enough for using in production. Why don't you fix this bug in Phalcon 1.3.3?
+1 to implement this feature in 1.3.x
It seems, developers are focused only on 2.x branch and will not implement any new features in 1.3. Anyway, this wasn't implemented for 1.5 years so... You can use Twig if you need this feature.
@phalcon told
This will be implemented in Phalcon 2 with Zephir
Just curious, when will Phalcon 2 be released?
So the reason not to use Twig or Smarty is that I suppose Volt is considerably faster in compiling templates since I suppose that the engine is written in C. And it seems that the compiled code is pretty clean too... However, template inheritance screams for nested blocks... you can hardly live without these. Plus One for nested blocks (and verbatim and block-plugins)
And i use twig because I assume that the template are cached once they are parsed ;)
+1 We need it so bad!
I have moved to Twig completely for rendering templates. It's more mature and has better docs.