WebApiContrib.Formatting.Razor icon indicating copy to clipboard operation
WebApiContrib.Formatting.Razor copied to clipboard

Web API formatter based on RazorViewEngine

Results 10 WebApiContrib.Formatting.Razor issues
Sort by recently updated
recently updated
newest added

If you set the siteRootPath on the RazoeViewFormatter, and you have a view with a layout set such as ``` @{ Layout = "_layout.cshtml"; } ``` Then the layout doesn't...

Is there a way to render a partial view?

The `GetDirectoryName` function in `GetPhysicalSiteRootPath` kept throwing an error saying "URI formats are not supported". _First_ stripping the execution path of its `file:///` prefix, before passing it to the `GetDirectoryName`...

MVC provides a means of specifying common view directives in the form of a `_ViewStart.cshtml` file in which one may specify a common `Layout`, among other things.

enhancement
up-for-grabs

See https://github.com/Antaris/RazorEngine/pull/203

enhancement
up-for-grabs

How do I tell this formatter which view to use? Naming conventions don't work because it looks for "List`1.cshtml". I can't really annotate IEnumerable with ViewAttribute. And I can't use...

enhancement
up-for-grabs

System.Net.Http.HttpRequestException System.Net.Http.HttpRequestException: Error while copying content to a stream. ---> System.IO.FileNotFoundException: Can't find a view with the name 'SignIn.cshtml' or 'SignIn.vbhtml in the '\Views' folder under path 'ad.isillc.com\web\inetsrv\sites\ISIS.Partner.Authentication' My site...

# Models public class CustomerDetials { public string FullName { get; set; } } public class ServiceDetials { public string Name { get; set; } } # Controllers //http://localhost/customer/details public...

bug

The samples are a good start, but for this to be very useful, we need much better documentation.