Sha256: b698b7a51d997567594bb610a96522d4f665cc7cc1161a2ed2778cb008af66be
Contents?: true
Size: 678 Bytes
Versions: 35
Compression:
Stored size: 678 Bytes
Contents
require 'sinatra' require 'sinatra/contrib' KEYWORDS = { locker: '$Locker: markd_locker $ ', author: '$Author: markd_author $ ', id: '$Id: https-test.pl 1081 2008-09-30 19:03:23Z john_id1 Exp $ ', id2: '$Id: https-test.pl 1081 2008-09-30 19:03:23Z john_id2 $ ', header2: '$Header: /cvsweb/cvs-guide/keyword.html,v 1.3 1999/12/23 21:59:22 markd_header2 $ ', header: '$Header: /cvsweb/cvs-guide/keyword.html,v 1.3 1999/12/23 21:59:22 markd_header Exp $ ' } KEYWORDS.each do |type, string| get "/#{type}" do string end end get '/' do KEYWORDS.keys.map do |type| "<a href=\"#{type}\">#{type}</a> " end.join end
Version data entries
35 entries across 35 versions & 1 rubygems