Passing locals to partial