Use Haml for views

* Bundle Haml gem
* Convert default erb layout to haml
This commit is contained in:
Thibault Jouan 2011-07-09 09:31:35 +00:00
parent 6b337d3461
commit 74fb4ca86f
4 changed files with 14 additions and 14 deletions

View File

@ -4,6 +4,8 @@ gem 'rails', '3.0.9'
gem 'sqlite3' gem 'sqlite3'
gem 'haml'
group :development, :test do group :development, :test do
gem 'rspec-rails' gem 'rspec-rails'
gem 'cucumber-rails' gem 'cucumber-rails'

View File

@ -56,6 +56,7 @@ GEM
ffi (1.0.9) ffi (1.0.9)
gherkin (2.4.1) gherkin (2.4.1)
json (>= 1.4.6) json (>= 1.4.6)
haml (3.1.2)
i18n (0.5.0) i18n (0.5.0)
json (1.5.3) json (1.5.3)
json_pure (1.5.3) json_pure (1.5.3)
@ -123,6 +124,7 @@ DEPENDENCIES
capybara capybara
cucumber-rails cucumber-rails
database_cleaner database_cleaner
haml
rails (= 3.0.9) rails (= 3.0.9)
rspec-rails rspec-rails
sqlite3 sqlite3

View File

@ -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>

View 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