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

Pass regions as arguments #16

Open
wants to merge 14 commits into
base: devel
Choose a base branch
from
Open

Conversation

tmeasday
Copy link
Contributor

@tmeasday tmeasday commented May 1, 2014

Hey Chris,

Please consider this PR more carefully. It allows usage like

{{#Layout template='layout' footer='footer'}}

As we discussed.

I would have just pushed this to devel but for one slightly controversial change -- see 812320c. Let me know if it's not clear why I had to do this, but I think it's a reasonable thing to do. All the IR + BL tests are passing and Verso seems to be working with this codebase, so I'm pretty happy with it.

Cheers

tmeasday added 14 commits May 1, 2014 17:27
This means that the component, or specifically `getRegion()` will receive updates to data reactively (for instance if you do `{{#Layout template='layoutWithFooter' footer=someHelperThatReturnsATemplateName}}`).

So we can use `data()` as a secondary source of region names reliably, and all is roses :)
@cmather -- notice that it fails against master. Good job!
Conflicts:
	layout-test.html
Conflicts:
	layout-test.html
	layout-test.js
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.

2 participants