fabpot/Twig — pull request #1310 by hason (2014-01-02 21:17:20+00:00)
Title: [RFC] Macros

We have many complications with macros: #651, #861, #929, #1157, #1160, #1212, #1217 To resolve all issues, we must correct behavior of macros. Due to the bad behavior of macros with dynamic inheritance was removed support for named arguments (#929). So I suggest these changes (unfortunately with BC breaks):

- [x] disable automatic import of imported macros from parent template (#861, #1160, #1212);
- [x] disable direct access to a macro method (#1157, #1217);
- [ ] limit the scope of the imported macros to the actual template (#651, #861);