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

Obsolete? #7

Closed
paynecodes opened this issue Aug 8, 2013 · 2 comments
Closed

Obsolete? #7

paynecodes opened this issue Aug 8, 2013 · 2 comments

Comments

@paynecodes
Copy link

I see that you mentioned this project could be obsolete now. Any suggestions? I'm having one heck of a time trying to get Handlebars, RequireJS, and Marionette all working in sync

@asciidisco
Copy link
Owner

I personally believe that it is obsolete, because to get the templates in your view, they just need to be a function:

define(['hbs!myTemplate'], function (template) {
  var MyView = Backbone.Marionette.ItemView.extend({
    template: template,
    model: new Backbone.Model({name: "Steve"})
  });
});

That should do the trick.

@paynecodes
Copy link
Author

Ah gotcha. I agree. I was able to get Handlebars working exactly like you say here using the hbs plugin your referring to with hbs!. For a while, I was trying to get these two working in tandem. Thanks!

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

2 participants