1 # Allow the metal piece to run in isolation
2 require(File
.dirname(__FILE__
) + "/../../config/environment") unless defined?(Rails
)
4 class <%= class_name
%>
6 if env["PATH_INFO"] =~
/^\/<%= file_name
%>/
7 [200, {"Content-Type" => "text/html"}, ["Hello, World!"]]
9 [404, {"Content-Type" => "text/html"}, ["Not Found"]]