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

Compiled templates returning undefined #18

Open
gravitron07 opened this issue May 27, 2016 · 0 comments
Open

Compiled templates returning undefined #18

gravitron07 opened this issue May 27, 2016 · 0 comments

Comments

@gravitron07
Copy link

The compiled template is returning undefined, but if I run the source template, it works fine:
`define(['jquery',
'hgn!../../../shared/templates/components/storelist.partial.html',
],
function list($listTpl) {
return {
updateView: function updateView(data) {
var markup;
var fixedData = self.massageData(data);
navigation.storeData = data;
console.log(listTpl);
console.log(listTpl.template);

    markup = listTpl(fixedData);
    $container.html(markup);
  }
};

});
`

The only thing I can see is the text property of the template is returning empty in the compiled version.

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

No branches or pull requests

1 participant