Use razor/asp.net mvc3 to generate static html pages?

后端 未结 7 1653
一整个雨季
一整个雨季 2020-12-29 05:55

For one projet, I\'ve to generate static .html pages, which are gonna to be published on a remote server.

I\'ve to automate the creation of those files from a c# cod

7条回答
  •  失恋的感觉
    2020-12-29 06:12

    Is there any performance reason you've run into that would merit the effort of pre-rendering the website? How many pages are we talking about? What kind of parameters do your controllers take? If vanilla caching does not satisfy your requirements, for me the best approach would be a disk-based caching provider...

    http://www.juliencorioland.net/Archives/en-aspnet-mvc-custom-output-cache-provider

提交回复
热议问题