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

Helpers not registered on template engine 10.1 #27

Closed
dbismut opened this issue Feb 8, 2014 · 4 comments
Closed

Helpers not registered on template engine 10.1 #27

dbismut opened this issue Feb 8, 2014 · 4 comments

Comments

@dbismut
Copy link

dbismut commented Feb 8, 2014

Hi, I am new to Meteor and successfully used Roles until I needed to use the new Meteor template engine 10.1. It looks like Roles works fine, but helpers are not registered.

So I launch my app with mrt --release template-engine-preview-10.1

This is what I guess in the console:

WARNING: Roles Handlebars helpers not registered. Handlebars not defined 

I managed to make it work by including in a client-side .js file the code from roles_client.js:

_.each(Roles._handlebarsHelpers, function(func, name) {
  Handlebars.registerHelper(name, func);
});

But I'm sure there must be a better way.

@alanning
Copy link
Contributor

Hi @dbismut,

Thanks for the report. I haven't looked into supporting the new Blaze UI so not sure what the correct way to handle the helpers is.

Since your fix works, I'll leave this issue open and direct people here until Blaze is officially released and we can do a proper fix.

@zimme
Copy link
Member

zimme commented Feb 26, 2014

Just replace 'handlebars' with 'ui' on line 7 in package.js

@alanning alanning mentioned this issue Mar 1, 2014
@alanning
Copy link
Contributor

alanning commented Mar 1, 2014

Closed. Will track via Issue #28 - Blaze Support

@alanning alanning closed this as completed Mar 1, 2014
@alanning
Copy link
Contributor

alanning commented Mar 1, 2014

Btw, thanks @zimme for the suggested fix! If it also works for the blaze release, please comment on Issue #28.

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

3 participants