Method: #build_css
- Defined in:
- lib/easel/build_pages.rb
#build_css ⇒ Object
46 47 48 49 50 51 52 53 54 55 56 |
# File 'lib/easel/build_pages.rb', line 46 def build_css error_erb = File.new("#{File.dirname(__FILE__)}/../html/app.css.erb").read css = ERB.new(error_erb).result(binding) "HTTP/1.1 200 OK\r\n" + "Content-Type: text/css; charset=UTF-8\r\n" + "Content-Length: #{css.bytesize}\r\n" + "Connection: close\r\n" + "\r\n" + css end |