开发者

Adding few static Html pages to website: Good/Bad practices?

开发者 https://www.devze.com 2023-01-23 06:03 出处:网络
I\'ve this old and static website which is just a collection of html pages created in 2005 using DreamWeaver. I need to recreate it in ASP.NET MVC.

I've this old and static website which is just a collection of html pages created in 2005 using DreamWeaver. I need to recreate it in ASP.NET MVC.

However, I've noticed that there few contents that are not susceptible to change over time, such as The Ministerial decree that created that organization, its mission, and a couple of similar things. So, I wonder if for those cases, I can just put the content on the page.

In one hand, that will speed up the development process. But, at the other hand, I fear that there be some principles I don't know yet that preach against using static pages in a modern website.

I've checked online to see if there are blogs/articles on that, but all I can find is "theorical stuff", such definitions, etc., b开发者_如何学JAVAut nothing precise on that mather.

Thanks for helping.


There is no practice against using static content within a dynamic page/site (we all use static images, js and css after all).

If the content is not likely to change and is not duplicated, hard code it, use static HTML files etc...

I would even say this is good practice, as having static content means your application does not have to process it and the server will use less resources when serving it.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号