cphalcon icon indicating copy to clipboard operation
cphalcon copied to clipboard

[VOLT] Support for embedding blocks into other blocks

Open applejohnny opened this issue 13 years ago • 72 comments

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.

applejohnny avatar Jan 15 '13 11:01 applejohnny

The same question. Is there a plans to implement this feature?

xpundel avatar Mar 03 '13 16:03 xpundel

Greetings! Is there any plans to implement this feature?

xpundel avatar Jul 04 '13 09:07 xpundel

Hi, is there any plans? I think this feature is important.

breezewish avatar Aug 23 '13 02:08 breezewish

+1

gianks avatar Aug 28 '13 19:08 gianks

I upvote for the feature

gsouf avatar Sep 02 '13 09:09 gsouf

Agreed. It would be nice to have a block inside an if statement.

Raistlfiren avatar Oct 14 '13 15:10 Raistlfiren

I think it's very useful feature. Waiting for this!

kvokov avatar Oct 30 '13 15:10 kvokov

Actually this is why i'm using twig instead of volt

gsouf avatar Oct 30 '13 18:10 gsouf

+1 for this great feature

raisoblast avatar Nov 14 '13 08:11 raisoblast

Any improvements after almost a year? As for me, this is the most needed missing feature in Volt

vladimmi avatar Jan 14 '14 19:01 vladimmi

This will be implemented in Phalcon 2 with Zephir

phalcon avatar Jan 14 '14 19:01 phalcon

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?

redstrike avatar Jul 19 '14 08:07 redstrike

+1 to implement this feature in 1.3.x

immortalx avatar Sep 04 '14 07:09 immortalx

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.

vladimmi avatar Sep 04 '14 07:09 vladimmi

@phalcon told

This will be implemented in Phalcon 2 with Zephir

gsouf avatar Sep 04 '14 08:09 gsouf

Just curious, when will Phalcon 2 be released?

manish-ga avatar Jan 18 '15 09:01 manish-ga

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)

datanator avatar Jan 22 '15 12:01 datanator

And i use twig because I assume that the template are cached once they are parsed ;)

gsouf avatar Jan 22 '15 13:01 gsouf

+1 We need it so bad!

michanismus avatar May 07 '15 01:05 michanismus

I have moved to Twig completely for rendering templates. It's more mature and has better docs.

redstrike avatar May 10 '15 16:05 redstrike