andrewdavey / postal

Email sending for asp.net mvc using the view engine system to render emails.
http://aboutcode.net/postal
MIT License
536 stars 168 forks source link

_ViewStart superfluous #48

Closed breyed closed 11 years ago

breyed commented 11 years ago

As far as I can tell, the _ViewStart.cshtml that lives next to the .cshtml files for the email messages serves no purpose and can be removed.

andrewdavey commented 11 years ago

This is to override the Layout property, often set by ~/Views/_ViewStart.cshtml. Otherwise email views would have the same layout as the page views of your application.

breyed commented 11 years ago

Sorry, you're right. For some reason, my email views had their own @{ Layout = null; } lines. Those lines were the real superfluosities.