If we're going to set a bunch of variables and then include a file, that sounds like a macro to me. Then you don't have to leak a bunch of one-time-use vars into the local template. Plus, it's harder to forget to set one of them. Check out partial/switch_tree.html for an example.