I\'m not even sure if this is possible, but I thought I would check to see if there is any way to make this easier.
First, I have some repeated markup in my site that lo
If you are using Razor and MVC 3 it's real easy to write a quick helper method that would go inside the app_code folder, (I'll name it MyHtmlHelpers)
I'd try something a little different and a little easier such as:
@helper myTemplate(string title, string markup){
@title
@markup
}
And the way you use it from a .cshtml file is as followed:
@MyHtmlHelpers.myTemplate('title','markup')
It should work, if I understand you correctly.