Usage of BaseTemplateType

Oct 15, 2012 at 9:32 AM


Can you help me?
I have a BaseTemplateType:

public class MessageTemplateBase<T> : RazorEngine.Templating.TemplateBase<T>
		protected string Subject { get; set; }
		protected string Body { get; set; }

I can Set this class to razor:

var service = new TemplateService(new TemplateServiceConfiguration
				BaseTemplateType = typeof(MessageTemplateBase<>)

Also I have model.

How I can get parsed Subject amd Body separately?