Sha256: 30476fdcefefb9f051b7ff62ec8fa778e28d244cd7d75b26c0302b948d1da012
Contents?: true
Size: 230 Bytes
Versions: 27
Compression:
Stored size: 230 Bytes
Contents
require 'erb' class App def initialize @view = ERB.new(File.read(File.join(File.dirname(__FILE__), 'view.erb'))) end def call(env) return [200, { 'Content-Type' => 'text/html' }, [@view.result(binding)]] end end
Version data entries
27 entries across 6 versions & 1 rubygems