Guest User

Untitled

a guest
Jun 19th, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #coding:UTF-8
  2. _erbout = ''; _erbout.concat "<!DOCTYPE HTML>\n\n<html>\n <head>\n <title>Simple Benchmark</title>\n </head>\n <body>\n <h1>"
  3.  
  4.  
  5.  
  6.  
  7.  
  8.  
  9. ; _erbout.concat(( header ).to_s); _erbout.concat "</h1>\n "
  10. ; unless item.empty? ; _erbout.concat "\n <ul>\n "
  11.  
  12. ; for i in item ; _erbout.concat "\n "
  13. ; if i[:current] ; _erbout.concat "\n <li><strong>"
  14. ; _erbout.concat(( i[:name] ).to_s); _erbout.concat "</strong></li>\n "
  15. ; else ; _erbout.concat "\n <li><a href=\""
  16. ; _erbout.concat(( i[:url] ).to_s); _erbout.concat "\">"; _erbout.concat(( i[:name] ).to_s); _erbout.concat "</a></li>\n "
  17. ; end ; _erbout.concat "\n "
  18. ; end ; _erbout.concat "\n </ul>\n "
  19.  
  20. ; else ; _erbout.concat "\n <p>The list is empty.</p>\n "
  21.  
  22. ; end ; _erbout.concat "\n </body>\n</html>"
  23.  
  24. ; _erbout.force_encoding(__ENCODING__)
Add Comment
Please, Sign In to add comment