I have previously written my web apps with a server side / html template language type design. I am interested in writing a static html client that uses javascript to fetch data from a restful service (ala couchdb). It dawned on me that I could not in one web request get both the static html file, and the json data that is used to populate it. This is not a problem by itself, but if I have a requirement for bookmarkable urls, how can I make this work?
/users/ -> downloads users.html -> ajax request looks up users.
/users/bob -> downloads user.html -> ajax request looks up bob.
Is this a reasonable design? It gives me a lot of flexibility on the backend, as well as making it easy to collaborate with a designer. Anyone done something similar, or have an alternate suggestion?
Thanks!