Sha256: 35926bda149ea95752cd21b015eb64be97b52f30d9b410de9478a91ca25cc448

Contents?: true

Size: 1005 Bytes

Versions: 1

Compression:

Stored size: 1005 Bytes

Contents

class Views::Base < Erector::Widget
  def content
    rawtext '<!doctype html>'
    html {
      head {
        link href: '//fonts.googleapis.com/css?family=Open+Sans:400,300,700,600', rel: 'stylesheet', type: 'text/css'
        stylesheet_link_tag 'application', media: 'all'
        style(type: 'text/css') {
          rawtext %{
            body {
              padding: 0 1rem 1rem;
              background: white;
            }

            .section_header {
              font-size: 1.6rem;
              padding: 1rem 0 0.25rem;
              margin-bottom: 1rem;
              border-bottom: 1px solid #eee;
            }
          }
        }
      }
      body {
        main
        script src: '//code.jquery.com/jquery-1.11.1.min.js'
        javascript_include_tag 'application'
        script %{
          $('[data-toggle="tooltip"]').tooltip()
        }.html_safe
      }
    }
  end

  private

  def docs(name, &block)
    div.section_header name, id: name.downcase
    yield
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dvl-core-0.1.0 spec/dummy/app/views/base.rb