I am involved in creating an HTML5 application, and we have created our own MIME type (mobile) for iPhone, Android, etc. So, for example, we have index.html.haml and index.mobile.haml. In many cases, the output will be the same - so my question is: how can I create a presentation file that is used by both request formats for mobile devices and html? And in cases where the view is different, select the correct html or mobile view?
I dig and cannot find a clean and elegant solution.
source
share