Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[VOLT] Support for embedding blocks into other blocks #133

Open
applejohnny opened this issue Jan 15, 2013 · 71 comments
Open

[VOLT] Support for embedding blocks into other blocks #133

applejohnny opened this issue Jan 15, 2013 · 71 comments

Comments

@applejohnny
Copy link

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.

@xpundel
Copy link

xpundel commented Mar 3, 2013

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

@xpundel
Copy link

xpundel commented Jul 4, 2013

Greetings!
Is there any plans to implement this feature?

@breezewish
Copy link

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

@gianks
Copy link

gianks commented Aug 28, 2013

+1

@gsouf
Copy link

gsouf commented Sep 2, 2013

I upvote for the feature

@Raistlfiren
Copy link

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

@kvokov
Copy link

kvokov commented Oct 30, 2013

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

@gsouf
Copy link

gsouf commented Oct 30, 2013

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

@raisoblast
Copy link

+1 for this great feature

@vladimmi
Copy link

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

@phalcon
Copy link
Collaborator

phalcon commented Jan 14, 2014

This will be implemented in Phalcon 2 with Zephir

@redstrike
Copy link

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?

@immortalx
Copy link

+1 to implement this feature in 1.3.x

@vladimmi
Copy link

vladimmi commented Sep 4, 2014

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.

@gsouf
Copy link

gsouf commented Sep 4, 2014

@phalcon told

This will be implemented in Phalcon 2 with Zephir

@manish-ga
Copy link

Just curious, when will Phalcon 2 be released?

@datanator
Copy link

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)

@gsouf
Copy link

gsouf commented Jan 22, 2015

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

@michanismus
Copy link

+1 We need it so bad!

@redstrike
Copy link

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

@AGvin
Copy link

AGvin commented May 24, 2015

Hi guys, do we have some updates for this feature?

@reedgz
Copy link

reedgz commented Jun 11, 2015

phalcon commented on Jan 14, 2014
This will be implemented in Phalcon 2 with Zephir

Any news on this one? Definitely needed.

I am developing current project with volt, just ran into the problem. Now I have to decide if I want to re-write all views in twig/smarty. Only two weeks from the deadline now.

@andresgutierrez
Copy link

@reedgz I'll be addressing this soon

@reedgz
Copy link

reedgz commented Jun 11, 2015

@andresgutierrez Thanks man. I am still developing with volt; just used some include to work around the problem. Fortunately my views are relatively simple.

@ilyavaiser
Copy link

Nothing at all?

@michanismus
Copy link

I switched to Twig as well...

@redstrike
Copy link

I wonder why Phalcon team created VOLT, which causes a lot of troubles for framework users. Twig's mature and performance are too great (templates are compiled to php, then it will be cached by Zend Opcache + add-on Twig C extension).

What happens if Phalcon team drops Volt to improve project's development speed?

@andresgutierrez
Copy link

@redstrike "A LOT OF TROUBLES" "TOO GREAT"

@alejandrovasta
Copy link

I need this feature as soon as possible! please, it's a shame that this magnificent framework doesn't have something so important. Thanks

@valVk
Copy link

valVk commented Oct 31, 2015

up

@hdjvieira
Copy link

+1

@krazzer
Copy link

krazzer commented Nov 4, 2017

This is the only reason I use Twig instead of Volt. Fixing this would be awesome, I would switch back to Volt right away.

@valVk
Copy link

valVk commented Nov 9, 2017

One of the most commented feature in this milestone and in the same time in the end of TODO list )

@4ctarus
Copy link

4ctarus commented Mar 2, 2018

+1

@victorhramos
Copy link

Im giving up using Volt cause that feature, in large and complex templates is very painful maintain using only one level of inheritance. Using phalcon only in API for Vue front.

@datanator
Copy link

I would suggest to reads jurijags reply again. Use either Twig or Smarty3 in stead of Volt, it might be slower in compilation time (when the template changes) but it won't matter in execution time (when the template is rendered).
I dismissed many of Phalcons features, but still use the framework basis since it is a fast and clean one.

@Jurigag
Copy link

Jurigag commented Mar 6, 2018

No twig or smarty3, only blade - twig and smarty3 are not really plain php - for each blocks etc they steal are using many objects and classes for no reason. Blade is pretty much similar in speed as volt on cached views.

@datanator
Copy link

Don't know Blade too well but does it support infinite inheritance? From the examples I only see one level, similar to Volt. I agree with Jurigag that Smarty and to a lesser extent Twig is somewhat bloated, but one might like the modular and extensible nature of that. In the end the compiled template defines most of its speed and efficiency. It boils down to a matter of taste. We can agree that Volt still has to improve to compete...

@ug-code
Copy link

ug-code commented Apr 25, 2018

+1
it's very useful feature.
actually "Laravel blade" is more useful than "volt"
see also => "yield, section"

@erickmajor
Copy link

erickmajor commented Jan 31, 2019

@niden

In version 4.0 of Phalcon it will be possible to use blocks {% block %} under conditions {% if %} and {% else %}?

@niden
Copy link
Sponsor Member

niden commented Feb 23, 2019

Closing in favor of phalcon/cphalcon#13855. Will revisit if the community votes for it, or in later versions.

@niden niden closed this as completed Feb 23, 2019
@niden niden reopened this Mar 11, 2019
@stale stale bot closed this as completed Jun 10, 2019
@phalcon phalcon deleted a comment from stale bot Jun 10, 2019
@niden niden reopened this Jun 10, 2019
@phalcon phalcon deleted a comment from stale bot Dec 23, 2019
@sergeyklay sergeyklay removed their assignment Jul 29, 2020
@gianks
Copy link

gianks commented Sep 22, 2021

Is there a deadline for this feature or will it be postponed forever?

@niden
Copy link
Sponsor Member

niden commented Sep 22, 2021

This will be addressed when we start working on v6 which will be the PHP version of Phalcon. There is no deadline as of yet and it has not been abandoned. Once v5 is out and stable we will start working on v6

@gianks
Copy link

gianks commented Sep 22, 2021 via email

@niden
Copy link
Sponsor Member

niden commented Sep 22, 2021

This has all been outlined in our blog (https://blog.phalcon.io).

  • v5 is the extension. It will remain as such.
  • v6 will be rewritten in PHP. Additionally benchmarks will be created for this version to identify slow areas of the code. Those areas will be also written in Zephir and will be offered as an extension. So you can install Phalcon with composer but if you want additional boost, you can also install the extension for v6.

@Jeckerson
Copy link
Member

@gianks Please read this blog post - https://blog.phalcon.io/post/phalcon-roadmap

@niden niden transferred this issue from phalcon/cphalcon Oct 1, 2021
@stale stale bot added the stale Stale issue scheduled to be deleted label Apr 20, 2022
@vladimmi
Copy link

Stale bots are the plague of GitHub making any inactivity a sign of "everything is great now" and closing unresolved issues...

@stale stale bot removed the stale Stale issue scheduled to be deleted label Apr 20, 2022
@phalcon phalcon deleted a comment from stale bot Apr 20, 2022
@niden
Copy link
Sponsor Member

niden commented Apr 20, 2022

Stale bots are the plague of GitHub making any inactivity a sign of "everything is great now" and closing unresolved issues...

Yeah, after today I am considering deactivating it. I had to remove the stale label from over 20 issues so far :/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog
Development

No branches or pull requests