Use Haml for views
* Bundle Haml gem * Convert default erb layout to haml
This commit is contained in:
parent
6b337d3461
commit
74fb4ca86f
2
Gemfile
2
Gemfile
@ -4,6 +4,8 @@ gem 'rails', '3.0.9'
|
||||
|
||||
gem 'sqlite3'
|
||||
|
||||
gem 'haml'
|
||||
|
||||
group :development, :test do
|
||||
gem 'rspec-rails'
|
||||
gem 'cucumber-rails'
|
||||
|
@ -56,6 +56,7 @@ GEM
|
||||
ffi (1.0.9)
|
||||
gherkin (2.4.1)
|
||||
json (>= 1.4.6)
|
||||
haml (3.1.2)
|
||||
i18n (0.5.0)
|
||||
json (1.5.3)
|
||||
json_pure (1.5.3)
|
||||
@ -123,6 +124,7 @@ DEPENDENCIES
|
||||
capybara
|
||||
cucumber-rails
|
||||
database_cleaner
|
||||
haml
|
||||
rails (= 3.0.9)
|
||||
rspec-rails
|
||||
sqlite3
|
||||
|
@ -1,14 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Scube</title>
|
||||
<%= stylesheet_link_tag :all %>
|
||||
<%= javascript_include_tag :defaults %>
|
||||
<%= csrf_meta_tag %>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<%= yield %>
|
||||
|
||||
</body>
|
||||
</html>
|
10
app/views/layouts/application.html.haml
Normal file
10
app/views/layouts/application.html.haml
Normal file
@ -0,0 +1,10 @@
|
||||
!!!
|
||||
%html
|
||||
%head
|
||||
%meta{'charset' => 'utf-8'}
|
||||
%title scube
|
||||
= stylesheet_link_tag :all
|
||||
= javascript_include_tag :defaults
|
||||
= csrf_meta_tag
|
||||
%body
|
||||
= yield
|
Loading…
x
Reference in New Issue
Block a user