Class Camping::Server
In: lib/camping/server.rb
Parent: Rack::Server

Methods

Classes and Modules

Class Camping::Server::Options
Class Camping::Server::XSendfile

Constants

SOURCE = <<-HTML <html> <head> <title>You are Camping</title> <style type="text/css"> body { font-family: verdana, arial, sans-serif; padding: 10px 40px; margin: 0; } h1, h2, h3, h4, h5, h6 { font-family: utopia, georgia, serif; } h3 { display: inline; } </style> </head> <body> <% if apps.empty? %> <p>Good day. I'm sorry, but I could not find any Camping apps. You might want to take a look at the console to see if any errors have been raised.</p> <% else %> <p>Good day. These are the Camping apps you've mounted.</p> <ul> <% apps.each do |name, app| %> <li> <h3><a href="/<%= name.to_s.downcase %>"><%= app %></a></h3> <small> / <a href="/code/<%= name.to_s.downcase %>">View source</a></small> </li> <% end %> </ul> <% end %> </body> </html> HTML
TEMPLATE = ERB.new(SOURCE)

Public Class methods

Public Instance methods

[Validate]