<%= VARS = {} if ENV['QUERY_STRING'].nil? page = 'index' else ENV['QUERY_STRING'].split('&').each { |var| var = var.split('=') if var.length > 1 VARS[var[0]] = var[1] elsif var.length > 0 VARS[var[0]] = var[0] end } if VARS['page'].nil? page = 'index' else page = VARS['page'].downcase end end page = 'error' unless Dir.glob("content/*.rhtml").include? "content/#{page}.rhtml" file = "content/#{page}.rhtml" Erubis::Eruby.load_file(file).evaluate() %>
Last modified: <%= File::Stat.new(file.untaint).mtime %>