Class: Frank::Base

Inherits:
Object
  • Object
show all
Includes:
Render, Rescue, TemplateHelpers, Rack::Utils
Defined in:
lib/frank/base.rb

Direct Known Subclasses

Compile, Publish::FTP, Publish::SCP

Constant Summary

Constants included from Render

Render::LAYOUT_EXTS, Render::TMPL_EXTS

Instance Method Summary collapse

Methods included from Render

#ext_from_handler, #layout_ext_or_first, #layout_for, #render, #setup_page, #tilt, #to_file_path

Methods included from TemplateHelpers

#capture, #content_for, #content_for?, #lorem, #refresh, #render_partial

Methods included from Rescue

#render_404, #render_500

Instance Method Details

#call(env) ⇒ Object



19
20
21
# File 'lib/frank/base.rb', line 19

def call(env)
  dup.call!(env)
end

#call!(env) ⇒ Object



23
24
25
26
27
28
29
30
# File 'lib/frank/base.rb', line 23

def call!(env)
  @env = env
  @request = Rack::Request.new(env)
  @response = Rack::Response.new
  process
  @response.close
  @response.finish
end