Reputation: 1373
I have a news feed that I update periodically. I currently have the website regenerate the page based on a text file that just contains the title and text for that news update, using Python. Example:
1.This is a Title
This is some text that represents the news for today, etc. etc. I'm just typing things at this point to make this look like a paragraph.
2.This is a Title, Too
This is some text that represents the news for today, etc. etc. I'm just typing things at this point to make this look like a paragraph.
Is there a more elegant way to do this with some non PHP/server-side language?
Upvotes: 0
Views: 77
Reputation: 682
have a look @ xml-parsing:
http://www.w3schools.com/xml/xml_parser.asp
The idea is as follows:
but why, if you are already using python, not create / read an xml file with python? or dynamically generate the file with python?
Upvotes: 1