Sha256: 24426178039f6ac603a22c4b7cdc7ee370a449cf7c7befc301513e2f31dbd921

Contents?: true

Size: 951 Bytes

Versions: 11

Compression:

Stored size: 951 Bytes

Contents

##
# Separated into its own file so it can be required in Application Templates and Generators easier.
module Cms
  module Templates

    ##
    # Generates a basic empty template for a page.
    #
    def self.default_body
      html = <<HTML
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <title><%= page_title %></title>
    <%= yield :html_head %>
  </head>
  <body style="margin: 0; padding: 0; text-align: center;">
    <div id="wrapper" style="width: 700px; margin: 0 auto; text-align: left; padding: 30px">
      Breadcrumbs: <%= render_breadcrumbs %>
      Main Menu: <%= render_menu %>
      <h1><%= page_header %></h1>
      <%= container :main %>
    </div>
  </body>
</html>
HTML
      html
    end
  end
end

Version data entries

11 entries across 11 versions & 2 rubygems

Version Path
browsercms-artirix-4.0.4 app/models/cms/templates.rb
browsercms-artirix-4.0.3.3 app/models/cms/templates.rb
browsercms-artirix-4.0.3.2 app/models/cms/templates.rb
browsercms-artirix-4.0.3.1 app/models/cms/templates.rb
browsercms-artirix-4.0.3 app/models/cms/templates.rb
browsercms-artirix-4.0.2 app/models/cms/templates.rb
browsercms-artirix-4.0.1.1 app/models/cms/templates.rb
browsercms-artirix-4.0.0.rc1.art4 app/models/cms/templates.rb
browsercms-4.0.0.rc1 app/models/cms/templates.rb
browsercms-4.0.0.beta app/models/cms/templates.rb
browsercms-4.0.0.alpha app/models/cms/templates.rb