Sha256: 76bd0d48a88191ff4d71220be8f5168e4e00f575c50fbc3736c78d7fa83ff707

Contents?: true

Size: 979 Bytes

Versions: 2

Compression:

Stored size: 979 Bytes

Contents

- backend_host = "#{request.scheme}://#{request.host}"
%html
  %head
    - %w{opensocial-jquery jquery.livequery jquery.form jquery.gadgeteer}.each do |jsfile|
      %script(src="/javascripts/#{jsfile}.js" type="text/javascript")
    %script(type="text/javascript")
      == backendHost = "#{backend_host}";
    %script(src="/javascripts/gadget.js" type="text/javascript")
    %script(src="/javascripts/<%= @options.singular %>.js"
            type="text/javascript")

    %script(type="text/os-data"
            xmlns:os="http://ns.opensocial.org/2008/markup")
      %os:OwnerRequest(key="owner")
      %os:ViewerRequest(key="viewer")
      %os:PersonAppDataRequest(key="ownerData" method="appdata.get"
                               userId="@owner" appId="@app")
      %os:PersonAppDataRequest(key="viewerData" method="appdata.get"
                               userId="@viewer" appId="@app")
  %body
    .container
      #header
        %h1 <%= @options.title %>
      #page

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
drogus-gadgeteer-0.3.0 templates/canvas.haml
gadgeteer-0.3.0 templates/canvas.haml