templates/rails_app/app/views/layouts/application.html.erb.tt in railman-0.6.20 vs templates/rails_app/app/views/layouts/application.html.erb.tt in railman-1.0.0
- old
+ new
@@ -5,28 +5,31 @@
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title><%= @config.class_name %></title>
- <%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %>
- <%%= javascript_include_tag 'application', 'data-turbolinks-track' => true %>
+ <%%= csrf_meta_tags %>
+ <%%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': true %>
+ <%%= javascript_include_tag 'application', 'data-turbolinks-track': true %>
+
<style data-turbolinks-track="true"><%%= yield :stylesheets %></style>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
-
- <%%= csrf_meta_tags %>
</head>
<body>
<div id="content">
<%%= ui_flash_messages %>
<%%= content_for?(:content) ? yield(:content) : yield %>
+
+ <div id='app'></div>
</div>
+ <%= javascript_pack_tag 'application' %>
<script>
window.current_language = "<%%= I18n.locale %>";
window.date_format = "<%%= I18n.t('date.formats.datepicker') %>";
</script>
</body>