Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #coding:UTF-8
- _erbout = ''; _erbout.concat "<!DOCTYPE HTML>\n\n<html>\n <head>\n <title>Simple Benchmark</title>\n </head>\n <body>\n <h1>"
- ; _erbout.concat(( header ).to_s); _erbout.concat "</h1>\n "
- ; unless item.empty? ; _erbout.concat "\n <ul>\n "
- ; for i in item ; _erbout.concat "\n "
- ; if i[:current] ; _erbout.concat "\n <li><strong>"
- ; _erbout.concat(( i[:name] ).to_s); _erbout.concat "</strong></li>\n "
- ; else ; _erbout.concat "\n <li><a href=\""
- ; _erbout.concat(( i[:url] ).to_s); _erbout.concat "\">"; _erbout.concat(( i[:name] ).to_s); _erbout.concat "</a></li>\n "
- ; end ; _erbout.concat "\n "
- ; end ; _erbout.concat "\n </ul>\n "
- ; else ; _erbout.concat "\n <p>The list is empty.</p>\n "
- ; end ; _erbout.concat "\n </body>\n</html>"
- ; _erbout.force_encoding(__ENCODING__)
Add Comment
Please, Sign In to add comment