c# - Best way to transform large groups of web pages? -
What is the best way to change large clusters of very similar web pages in a new CSS-based layout? ?
I am changing all the contents of an old website in a new CSS based layout Many pages are very similar, and I want to be able to automate this process.
What I am currently thinking of doing, read pages using HtmlAgilityPack, and make a method for each group of similar text that create output text.
What do you think is the best way to do this? Pages are different from most things, such as .jpg file used for the image, or how many groups of headline-image-text on that particular page
edit: I can not use any other file type Can not use .hmmml, because any suggestions are authorized to me?
EDIT2: Ideally, I would normally be able to use it to switch around some running parts and use it for different groups of html files.
It looks like you should reuse code if you are using strict HTML, So instead I would consider PHP or ASP based webpages. In this way, you can create header / content / footer / nav sections, and reuse the same code in all your webpages.
This will make it more durable, because you will only need to edit a file in the future.
Comments
Post a Comment