I want something very simple: share layouts between mailers!
Right now the only elegant way I found is
@{
Layout = "~/Views/EmailLayouts/_Layout.cshtml";
}
At the beginning of each Email view. (Please tell me I'm wrong!)
There ain't any real way to have a default Email layout.
The Best way I can think is to have a _MailViewStart.cshtml together with the new _ViewStart.cshtml
I want something very simple: share layouts between mailers! Right now the only elegant way I found is @{ Layout = "~/Views/EmailLayouts/_Layout.cshtml"; }
At the beginning of each Email view. (Please tell me I'm wrong!) There ain't any real way to have a default Email layout. The Best way I can think is to have a _MailViewStart.cshtml together with the new _ViewStart.cshtml
Thanks for the lovely work!
Regards,