Sha256: c001c9b759e8cbf15a2f2ebc61c660bab2aa1127d1b6ace2ad6679fdd87e11b1
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 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 } %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>" - elsif path.match(/\.js$/) = "<tt>#{path.match(/([\w\/]+)\./)[1]}.coffee</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
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
frank-0.2.6 | lib/frank/templates/404.haml |
frank-0.2.5 | lib/frank/templates/404.haml |
frank-0.2.4 | lib/frank/templates/404.haml |