Guest User

Untitled

a guest
Feb 20th, 2018
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 0.75 KB | None | 0 0
  1.     def page()
  2.         "<!DOCTYPE html>"+
  3.         self.html {
  4.             H.head {
  5.                 self.title{H.entities @title}+
  6.                 self.meta(:charset => :utf8)+
  7.                 self.link(:href => "/css/style.css", :rel => "stylesheet",
  8.                           :type => "text/css")+
  9.                 self.link(:href => "/images/favicon.png", :rel => "shortcut icon")+
  10.                 self.script(:src =>
  11.                     "//ajax.googleapis.com/ajax/libs/jquery/1.6.4/jquery.min.js"){}+
  12.                 self.script(:src => "/js/app.js"){}
  13.             }+
  14.             self.body {
  15.                 self.div(:class => "container") {
  16.                     _header+H.content{yield}+_footer
  17.                 }
  18.             }
  19.         }
  20.     end
Add Comment
Please, Sign In to add comment