Last active
August 29, 2015 13:55
-
-
Save panych/8785730 to your computer and use it in GitHub Desktop.
Typical rails application layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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