s/name/component/ (react.html.erb)
This commit is contained in:
parent
dfb85bb14c
commit
9aefa69e70
2 changed files with 2 additions and 2 deletions
|
@ -7,7 +7,7 @@
|
||||||
"Projects" => ["projects"]
|
"Projects" => ["projects"]
|
||||||
}.each do |component, paths|
|
}.each do |component, paths|
|
||||||
compile "/html/react.html.erb", rep: component do
|
compile "/html/react.html.erb", rep: component do
|
||||||
filter(:erb, locals: {name: "react-#{component.downcase}", src: "/js/main.js"})
|
filter(:erb, locals: {component: "react-#{component.downcase}", src: "/js/main.js"})
|
||||||
paths.each do |path|
|
paths.each do |path|
|
||||||
(path == "/") ? write("/index.html") : write("/#{path}/index.html")
|
(path == "/") ? write("/index.html") : write("/#{path}/index.html")
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
<link rel="icon" href="/favicon.svg"/>
|
<link rel="icon" href="/favicon.svg"/>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="<%= name %> w-full wrapper font-sans"></div>
|
<div class="<%= component %> w-full wrapper font-sans"></div>
|
||||||
<script src="<%= src %>"></script>
|
<script src="<%= src %>"></script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|
Loading…
Reference in a new issue