Skip to content

Instantly share code, notes, and snippets.

@panych
Last active August 29, 2015 13:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save panych/8785730 to your computer and use it in GitHub Desktop.
Save panych/8785730 to your computer and use it in GitHub Desktop.
Typical rails application layout
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="ru"><![endif]-->
<!--[if IE 7]> <html class="lt-ie9 lt-ie8" lang="ru"><![endif]-->
<!--[if IE 8]> <html class="lt-ie9" lang="ru"><![endif]-->
<!--[if gt IE 8]><!--><html class="" lang="ru"><!--<![endif]-->
<head>
<meta charset="utf-8">
<title><%= yield :title %></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<%= csrf_meta_tags %>
<%= stylesheet_link_tag "application", :media => "all" %>
<%= javascript_include_tag "application" %>
</head>
<body>
<div class="page">
<%= yield %>
</div>
</body>
</html>
doctype html
/![if lt IE 7]> <html class="lt-ie9 lt-ie8 lt-ie7" lang="ru"><![endif]
/![if IE 7]> <html class="lt-ie9 lt-ie8 ie-7" lang="ru"><![endif]
/![if IE 8]> <html class="lt-ie9 ie-8" lang="ru"><![endif]
/![if gt IE 8]><!
html( lang="ru" )
/! <![endif]
head
meta( charset='utf-8' )
meta( name='viewport' content='width=device-width, initial-scale=1' )
= csrf_meta_tags
= stylesheet_link_tag 'application', :media => 'all'
= javascript_include_tag 'application'
body
.page
= yield
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment