开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜