test/dummy/app/components/header/_header.html.erb in mountain_view-0.0.1 vs test/dummy/app/components/header/_header.html.erb in mountain_view-0.0.2
- old
+ new
@@ -1,4 +1,6 @@
<div class="header">
- <h1>This is a header component with the title: <%= properties[:title] %></h1>
- <h3>And subtitle <%= properties[:subtitle]</h3>
+ <h1><%= properties[:title] %></h1>
+ <%- if properties[:subtitle] %>
+ <h3><%= properties[:subtitle] %></h3>
+ <% end %>
</div>