Method: #build_app
- Defined in:
- lib/easel/build_pages.rb
#build_app ⇒ Object
build_app
20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/easel/build_pages.rb', line 20 def build_app app_erb = File.new("#{File.dirname(__FILE__)}/../html/app.html.erb").read page = ERB.new(app_erb).result() "HTTP/1.1 200 OK\r\n" + "Content-Type: text/html; charset=UTF-8\r\n" + "Content-Length: #{page.bytesize}\r\n" + "Connection: close\r\n" + "\r\n" + page end |