The only thing that my code uses which requires ASP.NET MVC is:
<<< HTML here >>>
<body>
<<< Some HTML here >>>
@Scripts.Render("~/bundles/jquery")
@Scripts.Render("~/bundles/textview")
@Scripts.Render("~/bundles/Angular")
@Scripts.Render("~/bundles/AngularApp")
</body>
</html>
Here's a sample from my BundleConfig.cs
bundles.Add(new StyleBundle("~/bundles/css").Include(
"~/Content/css/*.css"
));
The ability to render the CSS in debug or release is really good but I want to move completely away from using MVC and just use and index.html page and ASP.NET Web API. Is there a way that I can get similar functionality with rendering bundles without using a controller?
You can do two things:
lets say the routing will be:
In the route take the pathinfo and find the path to your html file(using Server.MapPath) and return View(filePath,null) since you need no model.