Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow an optional data array to be passed as the 2nd argument in the … #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

stubar
Copy link

@stubar stubar commented Jul 29, 2015

Enables optional data array to be passed to the partial in the same way as native '@include' calls e.g.

In a view

@partial('matter.organisms.strip',['element'=>'header'])
...

Partial definition

<{{$element}} class="strip">
...

Due the nature of the createOpenMatcher regex I've had to account for a different number of parameters and types coming in which isn't ideal I know. Must be a better way.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant