Sha256: 14bab56497b8d62e435a15b15ca4c4bae0b093e337eca8ee23c4daee73e64166
Contents?: true
Size: 1.19 KB
Versions: 3
Compression:
Stored size: 1.19 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—" %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.3 | lib/frank/templates/404.haml |
frank-0.2.2 | lib/frank/templates/404.haml |
frank-0.2.1 | lib/frank/templates/404.haml |