forked from shakacode/react_on_rails
-
Notifications
You must be signed in to change notification settings - Fork 0
/
application.html.erb
35 lines (28 loc) · 927 Bytes
/
application.html.erb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
<!DOCTYPE html>
<html>
<head>
<% if content_for?(:title) %>
<%= yield(:title) %>
<% else %>
<title>Dummy</title>
<% end %>
<%= yield :head %>
<%= stylesheet_pack_tag('app-bundle',
media: 'all',
'data-turbolinks-track': true) %>
<!-- NOTE: Must use defer and not async to keep async scripts loading in correct order -->
<%= javascript_pack_tag('vendor-bundle', 'data-turbolinks-track': true, defer: true) %>
<%= javascript_pack_tag('app-bundle', 'data-turbolinks-track': true, defer: true) %>
<%= csrf_meta_tags %>
</head>
<body>
<% flash.each do |key, value| %>
<%= content_tag :div, value, class: "flash #{key}" %>
<% end %>
<%= render "shared/header" %>
<%= yield %>
<!-- This is a placeholder for ReactOnRails to know where to render the store props for
client side hydration -->
<%= redux_store_hydration_data %>
</body>
</html>