Class: AllSeeingEye::Server

Inherits:
Sinatra::Base
  • Object
show all
Defined in:
lib/all_seeing_eye/server.rb

Instance Method Summary collapse

Instance Method Details

#show(page, layout = true) ⇒ Object



68
69
70
71
# File 'lib/all_seeing_eye/server.rb', line 68

def show(page, layout = true)
  response["Cache-Control"] = "max-age=0, private, must-revalidate"
  erb page.to_sym, {:layout => layout}
end