Be notified of new releases
Create your free GitHub account today to subscribe to this repository for new releases and build software alongside 28 million developers.Sign up
This release has one feature addition, in addition to doucmentation and support file updates.
Per @harikt, we have brought back the "finder" functionality from Aura.View v1. This means the TemplateRegistry can now search through directory paths to find templates implicitly, in addition to the existing explicitly registered templates. (Explicit mappings take precedence over search paths.)
Thanks also to @iansltx for his HHVM-related testing work.
First stable 2.0 release.
- DOC: Update docblocks and README.
- CHG: View::render() now takes a second param, $data, for an array of vars to be extract()ed into the template scope. Closure-based templates will need to extract this on their own. (The previous technique of placing partial vars in the main template object still works.)
- [BRK] Stop using a "content variable" and begin using setContent()/getContent() instead. In your layouts, replace
echo $this->getContent(). (This also removes the
- [ADD] Add support for sections per strong desire from @harikt, which fixes #46. The new methods are
getSection(), along with