Stache doesn't register correctly with steal #898

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

Comments

Projects
None yet
2 participants
@matthewp
Contributor

matthewp commented Apr 25, 2014

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