Lachstock

less is the new more.

Subscribe

thinks less is the new more.

Your host: Lachlan Hardy

Code

Mobile Pages in Sinatra

I’m building a Sinatra app that needs to be iPhone and Android capable. So I spent a few hours nutting out the best way I could come up with do it. I welcome suggestions for improving it!

To make it easier to explain, I’ve extracted my solution into a simplified Sinatra app. I only show the main file below, but you can grab the whole app from the download link to the left or on GitHub. The README has instructions on how to run it for those who aren’t Ruby-orientated.

Continue reading…