Skip to content

Commit

Permalink
Change template language to slim
Browse files Browse the repository at this point in the history
  • Loading branch information
hmlON committed Jan 28, 2017
1 parent 4726beb commit f3e79f7
Show file tree
Hide file tree
Showing 8 changed files with 24 additions and 28 deletions.
1 change: 1 addition & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ gem 'pg', '~> 0.18'
gem 'puma', '~> 3.0'
gem 'rails', '~> 5.0.1'
gem 'sass-rails', '~> 5.0'
gem 'slim'
gem 'turbolinks', '~> 5'
gem 'uglifier', '>= 1.3.0'

Expand Down
5 changes: 5 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,9 @@ GEM
shellany (0.0.1)
shoulda-matchers (3.1.1)
activesupport (>= 4.0.0)
slim (3.0.7)
temple (~> 0.7.6)
tilt (>= 1.3.3, < 2.1)
slop (3.6.0)
spring (2.0.1)
activesupport (>= 4.2)
Expand All @@ -237,6 +240,7 @@ GEM
actionpack (>= 4.0)
activesupport (>= 4.0)
sprockets (>= 3.0.0)
temple (0.7.7)
thor (0.19.4)
thread_safe (0.3.5)
tilt (2.0.6)
Expand Down Expand Up @@ -289,6 +293,7 @@ DEPENDENCIES
sass-rails (~> 5.0)
selenium-webdriver
shoulda-matchers
slim
spring
spring-watcher-listen (~> 2.0.0)
turbolinks (~> 5)
Expand Down
14 changes: 0 additions & 14 deletions app/views/layouts/application.html.erb

This file was deleted.

9 changes: 9 additions & 0 deletions app/views/layouts/application.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
doctype html
html
head
title Room538
= csrf_meta_tags
= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload'
= javascript_include_tag 'application', 'data-turbolinks-track': 'reload'
body
= yield
13 changes: 0 additions & 13 deletions app/views/layouts/mailer.html.erb

This file was deleted.

8 changes: 8 additions & 0 deletions app/views/layouts/mailer.html.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
doctype html
html
head
meta[http-equiv="Content-Type" content="text/html; charset=utf-8"]
style
| /* Email styles need to be inline */
body
= yield
1 change: 0 additions & 1 deletion app/views/layouts/mailer.text.erb

This file was deleted.

1 change: 1 addition & 0 deletions app/views/layouts/mailer.text.slim
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
= yield

0 comments on commit f3e79f7

Please sign in to comment.