Blog Post

Static html pages served from mvc application

Tuesday, August 11, 2015 12:32 AM

I wanted to create a template file for my angular template file.

Now usually I needed to write custom logic to serve html file for request, but this time I wanted to see if there is an better solution.

 

Create folder "~/Static/" in root of your application

Insert your file into this.

 

Insert your template file in this folder. In my case 'businesLine.html'. 

You do not need to do anything else and the file will be served.

 

Hope this helps