Skip to content

Inject meta-data from the partial #18

@RobLoach

Description

@RobLoach

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions