title: Serving non-Retina and Retina displays with one code base: framework for scaling layouts and assets for HTML5 apps on iPhones or iOS devices?
body: <p>Our goal is to emulate what developers can do with native iOS apps: that is, use a single layout, based on units, to accommodate Retina displays (640x960) and non-Retina displays (320x480).</p>
  
  <p>All iOS devs need to do is supply two sets of assets, one for Retina and one for non-Retina, and design their layouts in relative terms called units. Provided devs follow a certain naming convention, iOS automatically detects the user's screen size and uses the right assets and scales the layout accordingly.</p>
  
  <p>This means devs can serve two user bases with one code base.</p>
  
  <p>Do frameworks exist to help HTML5 devs accomplish the same thing?</p>
  
  <p>What have people done to service non-Retina and Retina displays while minimizing duplicate code?</p>
  
  <p>Thanks!</p>