A quick question with regards to Templates, Marcros and performance
I have done a few sites with Umbraco and have been unsure when to use marcros and when to use templates. Linguistically they don't sound like they should be interchangable to I was just looking to clarify when to use templates.
I have been using templates for everything other than when I would like a macro for the sole purpose that the editors can use it.
So for example, in the past I have used Ubmraco Examine for my site search and I have placed the logic to the search in a Search-Results.master template code behind file. The same would go for a products listing page. I have placed all of the logic to retrieve the product list and data in a product-category.master code behind file.
My sites end up being built out of a lot of master pages much like a traditional site would be built with .aspx pages.
I know I could have used macros for the two examples above. Everything works fine. But does using templates over the macros have an effect of performance?
A quick question with regards to Templates, Marcros and performance
I have done a few sites with Umbraco and have been unsure when to use marcros and when to use templates. Linguistically they don't sound like they should be interchangable to I was just looking to clarify when to use templates.
I have been using templates for everything other than when I would like a macro for the sole purpose that the editors can use it.
So for example, in the past I have used Ubmraco Examine for my site search and I have placed the logic to the search in a Search-Results.master template code behind file. The same would go for a products listing page. I have placed all of the logic to retrieve the product list and data in a product-category.master code behind file.
My sites end up being built out of a lot of master pages much like a traditional site would be built with .aspx pages.
I know I could have used macros for the two examples above. Everything works fine. But does using templates over the macros have an effect of performance?
Is there a "right" or "wrong" in this situation?
Thanks for advice!
is working on a reply...