boskaiolo/OnlineReputation — pull request #1 by siosonel (2013-06-08 18:27:41+00:00)
Title: Separate html, data, css, js

I typically organize my web app code to separate the html, styles, data, data processing, and library files. The idea is to have a mostly blank html page to load everything into. So, instead of generating separate html files for each company and linking to it from the dropdown, I create separate data requests or files that could be loaded into the same html page.

That means adjusting the python code, which I have not done, to create the 'data' files instead of html files. Ideally the data would be served dynamically by a database and formatted by PHP or similar, but I'm assuming file-based usage (no web server involved) so I'm just simulating ajax calls for now. Let me know if you find this contribution useful and we could discuss.