Sha256: 62dbcf260a443aa76102d0a90f0b3cbc08bc89c9a8d3dc34256f4891aee27523
Contents?: true
Size: 252 Bytes
Versions: 5
Compression:
Stored size: 252 Bytes
Contents
require 'pathname' module Lotus class Welcome def initialize(app) @root = Pathname.new(__dir__).join('templates').realpath @body = [@root.join('welcome.html').read] end def call(env) [200, {}, @body] end end end
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
lotusrb-0.3.2 | lib/lotus/welcome.rb |
lotusrb-0.3.1 | lib/lotus/welcome.rb |
lotusrb-0.3.0 | lib/lotus/welcome.rb |
lotusrb-0.2.1 | lib/lotus/welcome.rb |
lotusrb-0.2.0 | lib/lotus/welcome.rb |