glog 0.2.0 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/lib/glog/server.rb CHANGED
@@ -27,7 +27,7 @@ module Glog
27
27
  end
28
28
 
29
29
  def send_page(page)
30
- [200, { 'Content-Type' => ( page.content_type || 'text/html' ) }, [ render_page(page) ]]
30
+ [200, { 'Content-Type' => page.content_type }, [ render_page(page) ]]
31
31
  end
32
32
 
33
33
  def send_not_found
data/lib/glog/template.rb CHANGED
@@ -1,5 +1,8 @@
1
1
  require 'haml'
2
2
 
3
+ Haml::Template.options[:format] = :html5
4
+ Haml::Template.options[:encoding] = :utf8
5
+
3
6
  module Glog
4
7
  class Template
5
8
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 2
8
- - 0
9
- version: 0.2.0
8
+ - 2
9
+ version: 0.2.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Antono Vasiljev