Good point. Couldn't you also do something like index.mobi.html or 
index.html.mobi? I don't think these view names would necessarily have to be 
exposed as URLs -- they just need to be used server side to render the page 
appropriately.

Anthony

On Tuesday, August 30, 2011 12:01:53 AM UTC-4, rochacbruno wrote:
>
> I commented in Anthony notes, but I will replicate it here. 
>
> ---
>
> I created my own mechanism for mobile detection, which I am using for a long 
> time. So there is one thing I decided.
>
> It is better to prefix instead of suffix. so I named my views as 
> mobile.index.html instead of index.mobi.
>
> why?
>
> just because I can have .html, .load, .json, .xml for specific mobile scope 
> too.
>
> and it is better to have mobile.index.html for mobile while index.html to 
> browsers, same for mobile.index.json for index.json, and .load etc.
>
> ---
>
> http://code.google.com/p/web2py/source/detail?r=93578e588a1b22fd0c971932aed9823fb10df476
>
>

Reply via email to