Sha256: a522eafd10f6efd734ded7eed246ca70bb7bb290b133a63f2793c59fdb5826de

Contents?: true

Size: 1.17 KB

Versions: 9

Compression:

Stored size: 1.17 KB

Contents

!!! Strict
%html
  %head
    %title= "404 – Not Found"
    %style{:type=>'text/css'}
      :plain
        body { color: #222; font:14px "Helvetica", "Arial"; line-height: 20px; }
        #wrapper { margin:0px auto; width:300px; }
        h1 { margin: 24px -30px 10px -3px; font: bold 48px Georgia; line-height:48px;}
        img { margin: 60px 0px 0px -22px; }
        tt { color: #4D9EEF; color:#999; font-family: Inconsolata, Monaco, monospace }
    =refresh
  %body
    #wrapper
      %img{:src=>'/__frank__/frank-404.png'}
      %h1= "Not Found—"
      - unless environment == :serving
        %p
          - if request['REQUEST_PATH']
            - path = request['REQUEST_PATH'][1..-1]
            = "Try creating"
          
            - if path.match(/\.css$/)
              = "<tt>#{path.match(/([\w\/]+)\./)[1]}.sass</tt>"
            - else
              = "<tt>#{path.gsub(/\/$/, '')}.haml</tt>"
            = "in the <tt>#{dynamic_folder}</tt> folder, or"
          
            - if path.match(/\.\w+/)
              = "<tt>#{path}</tt>"
            - else
              = "<tt>#{path.gsub(/\/$/, '')}.html</tt>"
            = "in the <tt>#{static_folder}</tt> folder."

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
frank-1.0.2 lib/frank/templates/404.haml
frank-1.0.1 lib/frank/templates/404.haml
frank-1.0.0 lib/frank/templates/404.haml
frank-0.4.1 lib/frank/templates/404.haml
frank-0.4.0 lib/frank/templates/404.haml
frank-0.3.2 lib/frank/templates/404.haml
frank-0.3.1 lib/frank/templates/404.haml
frank-0.3.0 lib/frank/templates/404.haml
frank-0.3.0.beta2 lib/frank/templates/404.haml