Sha256: 81fa768dee9d272313b7f92c77909e23e4d4acae2a5b50f0392f44eb2623f461

Contents?: true

Size: 1.25 KB

Versions: 19

Compression:

Stored size: 1.25 KB

Contents

!!! 5
/
  #{__FILE__}
%html{self.attributes}
  %head
    %meta{'charset'   => 'UTF-8'}

    - self.metadata.each do |name, value|
      %meta{'name'    => name,
            'content' => value}
    - self.links.each do |name, value|
      %link{'rel'     => name,
            'href'    => value}
    - self.stylesheets.each do |stylesheet|
      %link{'rel'     => 'stylesheet',
            'href'    => stylesheet}
    %link{'rel'       => 'stylesheet',
          'href'      => "#{RubyApp::Application.root_or_nil}/#{RubyApp::Language.locale.code}/document.css"}
    - self.scripts.each do |script|
      %script{'src'   => script}
    %script{'src'     => "#{RubyApp::Application.root_or_nil}/#{RubyApp::Language.locale.code}/document.js"}

    %meta{'name'      => 'root',
          'content'   => RubyApp::Application.root}
    %meta{'name'      => 'session',        
          'content'   => RubyApp::Session.session_id}
    %meta{'name'      => 'locale',         
          'content'   => RubyApp::Language.locale.code}
    %meta{'name'      => 'error_message',  
          'content'   => RubyApp::Elements::Mobile::Document.translate.error_message}
    = yield :head
  %body
    - self.pages.reverse.each do |page|
      = page.render(:html)
    %div.overlay
    = yield :body

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
RubyApp-0.7.16 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.15 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.14 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.13 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.12 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.11 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.10 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.9 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.5 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.4 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.3 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.2 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.1 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.7.0 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.6.71 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.6.70 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.6.69 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.6.68 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.6.67 lib/ruby_app/elements/mobile/document.html.haml