Usually when building a Partial, you have something like:
Hello <%=@name or 'World'%>
Welcome to <%= @site?.name or 'My Site' %>
Now, what if you could inject meta-data to the document from the Partial itself?
---
someData: "Oh, yes please."
---
Hello <%=@name or 'World'%>
Welcome to <%= @site?.name or 'My Site' %>
Then calling @partial('mypartial') would manipulate the source document's meta-data.
Usually when building a Partial, you have something like:
Now, what if you could inject meta-data to the document from the Partial itself?
Then calling @partial('mypartial') would manipulate the source document's meta-data.