In many Rapido templates I see this:
@if (File.Exists(HttpContext.Current.Server.MapPath("/Components/Custom/Custom__Components.cshtml")))
{
<text>@Include("Components/Custom/Custom__Components.cshtml")</text>
}
Is this an attempt to include dynamically? Or just to execute the code dynamically? I thought that @Include was parsed first before the template would be processed, so wouldn't the output be the same with or without the File.Exists check?
Imar