Main template with macros with layouts