Add memoize for template view macros property