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

Importing a template doesn't work with the new syntax #2042

Closed
matthewp opened this issue Oct 29, 2015 · 3 comments
Closed

Importing a template doesn't work with the new syntax #2042

matthewp opened this issue Oct 29, 2015 · 3 comments
Assignees
Labels
Milestone

Comments

@matthewp
Copy link
Contributor

<can-import from='can/view/import/test/other.stache!' {^value}='*other' />{{> *other}}

Tries to import *other.mustache, not sure why yet.

@matthewp matthewp added the bug label Oct 29, 2015
matthewp added a commit that referenced this issue Oct 29, 2015
@matthewp
Copy link
Contributor Author

4b3402c contains tests.

@matthewp matthewp added this to the 2.3.2 milestone Oct 29, 2015
matthewp added a commit that referenced this issue Oct 30, 2015
This updates all of the can-import tests to use the new binding syntax.
One of the tests uses this method:

```handlebars
<can-import from='can/view/import/test/other.stache!' {^@value}='*other'
/>

{{{*other()}}}
```

While all of the others use the old syntax:

```handlebars
<can-import from='can/view/import/test/other.stache!' {^@value}='*other'
/>

{{> *other}}
```

So we know that both do work.

One change I had to make was to prevent can.Component from setting up
it's own bindings when can-import is used with `can-tag`. This is
because the bindings are performed in can/view/bindings instead.

Closes #2042 and #2044
matthewp added a commit that referenced this issue Oct 30, 2015
This updates all of the can-import tests to use the new binding syntax.
One of the tests uses this method:

```handlebars
<can-import from='can/view/import/test/other.stache!' {^@value}='*other'
/>

{{{*other()}}}
```

While all of the others use the old syntax:

```handlebars
<can-import from='can/view/import/test/other.stache!' {^@value}='*other'
/>

{{> *other}}
```

So we know that both do work.

One change I had to make was to prevent can.Component from setting up
it's own bindings when can-import is used with `can-tag`. This is
because the bindings are performed in can/view/bindings instead.

Closes #2042 and #2044
@justinbmeyer
Copy link
Contributor

@matthewp Can you make the changes we talked about on Friday tomorrow? I'd like to get 2.3.2 done. Thanks!

matthewp added a commit that referenced this issue Nov 9, 2015
matthewp added a commit that referenced this issue Nov 9, 2015
This updates all of the can-import tests to use the new binding syntax.
One of the tests uses this method:

```handlebars
<can-import from='can/view/import/test/other.stache!' {^@value}='*other'
/>

{{{*other()}}}
```

While all of the others use the old syntax:

```handlebars
<can-import from='can/view/import/test/other.stache!' {^@value}='*other'
/>

{{> *other}}
```

So we know that both do work.

One change I had to make was to prevent can.Component from setting up
it's own bindings when can-import is used with `can-tag`. This is
because the bindings are performed in can/view/bindings instead.

Closes #2042 and #2044
@justinbmeyer
Copy link
Contributor

@matthewp made them. This just needs to be merged: #2045

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

No branches or pull requests

2 participants