Use Hamlit to render Haml

This commit is contained in:
Takashi Kokubun 2016-02-06 17:42:50 +09:00
parent 0c05b474c5
commit 3028f8e9ad
3 changed files with 9 additions and 4 deletions

View file

@ -175,7 +175,7 @@ gem "typhoeus", "0.8.0"
# Views
gem "gon", "6.0.1"
gem "haml", "4.0.7"
gem "hamlit", "2.2.1"
gem "mobile-fu", "1.3.1"
gem "will_paginate", "3.1.0"
gem "rails-timeago", "2.11.0"

View file

@ -390,6 +390,10 @@ GEM
haml (~> 4.0)
rubocop (>= 0.25.0)
sysexits (~> 1.1)
hamlit (2.2.1)
temple (~> 0.7.6)
thor
tilt
handlebars_assets (0.23.0)
execjs (~> 2.0)
multi_json (~> 1.0)
@ -816,6 +820,7 @@ GEM
json (>= 1.4.3)
sysexits (1.2.0)
systemu (2.6.5)
temple (0.7.6)
terminal-table (1.5.2)
test_after_commit (0.4.2)
activerecord (>= 3.2)
@ -927,8 +932,8 @@ DEPENDENCIES
guard-jshintrb (= 1.1.1)
guard-rspec (= 4.6.4)
guard-rubocop (= 1.2.0)
haml (= 4.0.7)
haml_lint (= 0.15.2)
hamlit (= 2.2.1)
handlebars_assets (= 0.23.0)
http_accept_language (= 2.0.5)
i18n-inflector-rails (= 1.0.7)

View file

@ -1,2 +1,2 @@
Haml::Template.options[:format] = :html5
Haml::Template.options[:escape_html] = true
Hamlit::Engine.options[:format] = :html
Hamlit::Engine.options[:escape_html] = true