bitovi/canjs — pull request #1369 by sykopomp (2014-12-15 01:32:45+00:00)
Title: can.stache import support

This adds support for a variety of import syntaxes when using `steal` to load `stache` templates.

The acceptable syntaxes are:

* `{{@import "modulename"}}`
* ``

Additionally, this adds `steal`-based static resolution for partials, so the following is also supported, and will inline the template:

* `{{>modulename.stache!}}`

### Notes and Justification
The implementation is fairly rough right now, using plain old regexes to parse out and remove import information from the module string when the file is parsed by stache. Ideally, this would use our stache parser to yank these out more reliably, specially the `` tags.

The biggest use case for this patch, aside from making partials more useful in applications that use `steal` as a loader, is to import `can.Component` and helper definitions right in the `stache` templates that use them without having to worry about load order of modules (and having these in the file that actually uses them).

### Example
```html

{{@import "my_stache_helpers}}

{{#each tabDefs}}

{{>./tab-boilerplate.stache!}}
{{content}}

{{/each}}

```