15 lines
262 B
Ruby
Executable File
15 lines
262 B
Ruby
Executable File
#!/usr/bin/env ruby
|
|
|
|
require "cgi"
|
|
require "erb"
|
|
|
|
ASSETS_DIR = File.join(__dir__, "assets")
|
|
|
|
cgi = CGI.new
|
|
|
|
template = ERB.new(File.read(File.join(ASSETS_DIR, "login.erb")))
|
|
|
|
cgi.out("type" => "text/html", "charset" => "UTF-8") do
|
|
template.result(binding)
|
|
end
|