Presently the parameter "razor.email.base.dir" must be set in the web.config, or it throws an exception upon use.
This violates the principle of "Convention Over Configuration", which MVC tries to promote.
Basically, "C over C" mean "Every parameter should have a sensible default, so it just works, out of the box". For example, the location of the views is a configurable option, but you don't have to set it, as it defaults to the sensible "~/Views"
Similarly, "razor.email.base.dir" should have a default. I'd suggested "~/Views/RazorMail" unless someone has an alternate suggestion.
Presently the parameter "razor.email.base.dir" must be set in the web.config, or it throws an exception upon use.
This violates the principle of "Convention Over Configuration", which MVC tries to promote.
Basically, "C over C" mean "Every parameter should have a sensible default, so it just works, out of the box". For example, the location of the views is a configurable option, but you don't have to set it, as it defaults to the sensible "~/Views"
Similarly, "razor.email.base.dir" should have a default. I'd suggested "~/Views/RazorMail" unless someone has an alternate suggestion.