Sha256: 237342b99b8546de43a2ea36fbd95348edef1b4f4d7df8e7c09bd4fe24b2f753

Contents?: true

Size: 1.07 KB

Versions: 3

Compression:

Stored size: 1.07 KB

Contents

!!! 5
/
  #{__FILE__}
%html{self.attributes}
  %head
    - 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::Language.locale.code}/document.css"}
    - self.scripts.each do |script|
      %script{'src'   => script}
    %script{'src'     => "/#{RubyApp::Language.locale.code}/document.js"}

    %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

3 entries across 3 versions & 1 rubygems

Version Path
RubyApp-0.6.60 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.6.59 lib/ruby_app/elements/mobile/document.html.haml
RubyApp-0.6.58 lib/ruby_app/elements/mobile/document.html.haml