class Ki::Middleware::HamlCompiler
Public Instance Methods
call(env)
click to toggle source
# File lib/ki/middleware/haml_compiler.rb, line 9 def call(env) req = BaseRequest.new env if view_exists?(req) html = render_haml_file view_path(req) Rack::Response.new(html).finish else @app.call env end end