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

Stache doesn't register correctly with steal #898

Closed
matthewp opened this issue Apr 25, 2014 · 0 comments
Closed

Stache doesn't register correctly with steal #898

matthewp opened this issue Apr 25, 2014 · 0 comments

Comments

@matthewp
Copy link
Contributor

Throws an exception here: https://github.com/bitovi/canjs/blob/minor/view/view.js#L386

Because it is missing the script function.

options.text = type.script(id, options.text);

Here is where Stache registers: https://github.com/bitovi/canjs/blob/minor/view/stache/stache.js#L264

can.view.register({
    suffix: "stache",

    contentType: "x-stache-template",

    // Returns a `function` that renders the view.
    fragRenderer: function(id, text) {
        return stache(text);
    }
});

As you can see, no script function.

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

No branches or pull requests

2 participants