We have added a new feature “sections” to Aura.View v2 and released it as 2.0.0-beta2.

This feature is due to the patient lobbying of Hari KT. He saw variations of it in Plates and Symfony, and figured it would be a nice bit of feature parity to add. He was right.

It also involves a small BC-breaking change. Instead of assigning the inner view content to a template variable, we now store that content internally and expose it via a getContent() method. So instead of echo $this->content_var_name to place the content in the layout, we now use echo $this->getContent().

Enjoy!

Subscribe and get latest updates by email

Enter your email address:

Delivered by FeedBurner

blog comments powered by Disqus