Check your requirements and make sure that cHTML or XHTML won''t work
just as
well as WML. WML is pretty deprecated these days, but maybe you need to
support really, really old devices. Also, make sure that whatever WAP
gateway your customers are using doesn''t perform cHTML to WAP
conversion for
you anyway. I used to develop small i-Mode sites (among other mobile sites)
and you might be surprised what works on most mobile phones these days.
Although WML has some niceties, the context-switch (as a developer) away
from *HTML is so distant that imho its best to avoid it if you can.
To answher your basic question, its just a different view, so I
wouldn''t see
any problems with doing WML in Rails. See the Rails Wiki for some good
ideas:
http://wiki.rubyonrails.com/rails/pages/HowToProvideAlternateViewsForMobileDevices
Although I like the idea of checking the ACCEPT header
(@request.env["HTTP_ACCEPT"]),
just because a device says it will accept text/wml doesn''t mean it will
only
accept WML. Check for better formats.
I hope this helps.
On 7/27/06, Mark Hall <markh@networld.com> wrote:>
> Does anyone actually use WAP? I thought that was dead years ago....
>
> --
> Posted via http://www.ruby-forum.com/.
> _______________________________________________
> Rails mailing list
> Rails@lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
http://wrath.rubyonrails.org/pipermail/rails/attachments/20060727/11c41e84/attachment-0001.html