<% # SPROUTCORE DEFAULT INDEX TEMPLATE # This template provide provides a basic wrapper for a SproutCore client. # Most of the time, it will be sufficient for your own needs. However, if # you need to create your own template, you can do so by copying this file # into your client, naming it 'index.rhtml' and then adding the options # :index => 'index' to your client declaration in routes.rb. # # See the comments in this file for more information on what you can # change. -%> <% # @title will be defined if you passed :title in routes.rb -%> <%= (@title.to_s || bundle_name.to_s || '').capitalize %> <% # # This line should appear in your head area to include the stylesheets # generated by your client. If you need to include your own # stylesheets, you don't need to change it here. Instead, use the # :requires option in routes.rb. -%> <%= stylesheets_for_client %> <% # # This is where you root body element will appear. To cause your # content to appear here, just declare content_for('body') in one of # your partials. -%> <%= @content_for_body %> <% # # This is where the resources you delcare will appear. You must # include the following three lines verbatim for the resources you # declare to be properly used. -%> <% # # This line should appear at the bottom of your page to include your # generated JavaScript and any libraries you reference. If you need # to include other javascripts, add them to the :requires option of # your client in routes.rb instead of changing it here. -%> <%= javascripts_for_client %> <% # # The following lines to the closing body tag must be included at the # very end of your file. This will actually setup the JavaScript # views on your page and register SproutCore to start on page load. -%> <%= render_page_views %> <%= @content_for_final %>