Is it possible to use YAML front matter inside partials? I’m building some components using partials, and I’d like to be able to specify some dummy data within the component (in case it isn’t called with the right data, or for inclusion in a style guide). For example, something like:
_my_component.html.erb:
---
items:
- Item One
- Item Two
---
<ul class="my-class">
<% (items || data.items).each do |item| %>
<li><%= item %></li>
<% end %>
</ul>
Is this possible?