Steal Stache plugin should provide module id and path to templates #1817

Closed
matthewp opened this Issue Jul 29, 2015 · 1 comment

Comments

Projects
None yet
1 participant
@matthewp
Contributor

matthewp commented Jul 29, 2015

It is useful to know the module name for a couple of scenarios:

<can-import from="../cart">
  <cart></cart>
</can-import>

When loading modules dynamically this gives the ability to use relative paths by passing the current module name into System.import.

<img src="{~ '../images/logo.svg'}" />

This would resolve the relative lookup by the current module path.

@matthewp matthewp added this to the 2.3.0 milestone Jul 29, 2015

@matthewp matthewp self-assigned this Jul 29, 2015

matthewp added a commit that referenced this issue Jul 30, 2015

Pass module as a helper for System compiled stache templates
This will allow `<can-import from="./other.stache" />`, module importing
from modules relative to the template. Closes #1817

matthewp added a commit that referenced this issue Jul 30, 2015

Pass module as a helper for System compiled stache templates
This will allow `<can-import from="./other.stache" />`, module importing
from modules relative to the template. Closes #1817
@matthewp

This comment has been minimized.

Show comment
Hide comment
@matthewp

matthewp Aug 4, 2015

Contributor

In minor.

Contributor

matthewp commented Aug 4, 2015

In minor.

@matthewp matthewp closed this Aug 4, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment