Skip to content

Commit

Permalink
Merge branch 'master' of github.com:zurb/foundation
Browse files Browse the repository at this point in the history
  • Loading branch information
zurbchris committed Sep 18, 2012
2 parents 012706b + 24bd4e9 commit ec4d078
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/foundation/generators/layout_generator.rb
Expand Up @@ -11,6 +11,8 @@ class LayoutGenerator < Rails::Generators::Base
def create_layout
if options.haml?
template 'application.html.haml', "app/views/layouts/#{file_name}.html.haml"
elsif
template 'application.html.slim', "app/views/layouts/#{file_name}.html.slim"
else
template 'application.html.erb', "app/views/layouts/#{file_name}.html.erb"
end
Expand Down
30 changes: 30 additions & 0 deletions lib/foundation/generators/templates/application.html.slim
@@ -0,0 +1,30 @@
doctype html
== "<!-- paulirish.com/2008/conditional-stylesheets-vs-css-hacks-answer-neither/ -->"
== "<!--[if lt IE 7 ]> <html class=\"ie6\" lang=\"en\"> <![endif]-->"
== "<!--[if IE 7 ]> <html class=\"ie7\" lang=\"en\"> <![endif]-->"
== "<!--[if IE 8 ]> <html class=\"ie8\" lang=\"en\"> <![endif]-->"
== "<!--[if IE 9 ]> <html class=\"ie9\" lang=\"en\"> <![endif]-->"
== "<!--[if (gt IE 9)|!(IE)]><!--> <html lang=\"en\"> <!--<![endif]-->"

head
meta charset="utf-8"

/ Uncomment to make IE8 render like IE7
/ meta http-equiv="X-UA-Compatible" content="IE=7"
/ Set the viewport width to device width for mobile
meta name="viewport" content="width=device-width, initial-scale=1.0"

title= content_for?(:title) ? yield(:title) : "Untitled"

/ Included CSS Files
= stylesheet_link_tag "application"

/ Included JS Files
= javascript_include_tag "application"

= csrf_meta_tag

body
.container
== yield

0 comments on commit ec4d078

Please sign in to comment.