apply partial macros to views