friendica/friendica — pull request #560 by fermionic (2012-12-25 18:51:26+00:00)
Title: simplify by making Smarty include directives behave like Friendica native ones

I decided I really disliked having statements like {{ inc $field_select }} where $field_select was defined by the PHP scripts. It takes too much control away from theme developers, and it's a pain to maintain. Plus, by getting rid of that, porting to Red will be easier.

Also, further tests that I've done (in addition to Smarty's documentation) reveal that not all variables have to be explicitly pass to included templates. Included templates can use the calling template's variables, just like in Friendica.