Reputation: 2640
I'm new to Umbraco, wanted to know when does one use Macros over Partial Views and vice versa.
My understanding is that, both are used to create reusable views on different content pages.
Can someone please help me get an understanding of the same. I'm using Umbraco 7.2.1
Thanks.
Upvotes: 1
Views: 1689
Reputation: 3271
Macros are generally reusable elements you want the content editor to use in rich text editors or the grid. Partial views are reusable elements you as a developer use in your templates.
Macro's have some other benefits over partial views like built in caching, parameters that can be defined in the backoffice and they can hide exceptions from the end user.
Upvotes: 2