title: Developing websites with same API as mobile
body: <p>I'm only familiar with native mobile development, not web development, so forgive my naïvety.</p>
  
  <p>An API for a mobile app would usually involves requesting via POST or GET data from an API. The data would be returned as JSON. For the sake of this example, imagine the API is a simple one powered by Sinatra / Ruby, which would be consumed by both the mobile and website.</p>
  
  <p>What are the options for website development using the same paradigm - with the web front-end getting it's data from the same JSON endpoints as the mobile app? </p>
  
  <p>I've heard the names AngularJS and Backbone.js thrown around, though perhaps Sinatra is enough? I would prefer not to use PHP.</p>
  
  <p>I would prefer a lightweight solution. If possible, I would like it to be able to update pages when the model changes, though I'm guessing this would depend on backend API changes.</p>