Why single_page.haml and index.haml?

46 views
Skip to first unread message

rcarr...@gmail.com

unread,
Mar 15, 2013, 10:07:49 AM3/15/13
to calatrav...@googlegroups.com
For the mobile web app, it seems that index.haml is used, but for embedding in a native app, single_page.haml is used. Why not just have one used in both places? If there's a difference, I'd be happy to contribute to the docs so that it's made clear.

Rick

rcarr...@gmail.com

unread,
Mar 15, 2013, 10:21:04 AM3/15/13
to calatrav...@googlegroups.com, rcarr...@gmail.com
On Friday, March 15, 2013 10:07:49 AM UTC-4, rcarr...@gmail.com wrote:
> For the mobile web app, it seems that index.haml is used, but for embedding in a native app, single_page.haml is used. Why not just have one used in both places? If there's a difference, I'd be happy to contribute to the docs so that it's made clear.
>
> Rick

Ah, I think I understand it a bit better now. I'll throw up some docs on the Wiki in the shell page.

Vivek Jain

unread,
Mar 15, 2013, 10:25:08 AM3/15/13
to rcarr...@gmail.com, calatrav...@googlegroups.com
index.haml is used to generate the index.html which includes all the pages, this will ensure that all required page templates are loaded in one shot for the mobile web app (for better performance).

For native apps, there is an option to either use the shared html or use the native implementation. Thus, in case of native apps, the pages are generated separately for each page (like conversionForm.html in the sample app). Secondly, to allow native transitions, each page HTML is part of a separate Activity/ViewController even if you want to use multiple pages as HTML.

Hope this helps.

-Vivek


On Fri, Mar 15, 2013 at 10:07 AM, <rcarr...@gmail.com> wrote:
For the mobile web app, it seems that index.haml is used, but for embedding in a native app, single_page.haml is used.  Why not just have one used in both places?  If there's a difference, I'd be happy to contribute to the docs so that it's made clear.

Rick

--
You received this message because you are subscribed to the Google Groups "calatrava-mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email to calatrava-mobi...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.



rcarr...@gmail.com

unread,
Mar 15, 2013, 10:33:25 AM3/15/13
to calatrav...@googlegroups.com, rcarr...@gmail.com
Thanks, Vivek! Yeah, that's what I had figured out (and what I just put into the wiki).
Reply all
Reply to author
Forward
0 new messages