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

Cannot find partials #97

Open
mehulkar opened this issue May 22, 2014 · 1 comment
Open

Cannot find partials #97

mehulkar opened this issue May 22, 2014 · 1 comment

Comments

@mehulkar
Copy link

I'm using the handlbars_assets gem in a Rails 4 + Ember (post 1.0) application and loading handlebars.js v1.3.0

# application.rb
HandlebarsAssets::Config.ember = true
HandlebarsAssets::Config.template_namespace = 'Ember.TEMPLATES'

I have a partial located at app/assets/javascripts/templates/_project_types.hbs. When I load console, I can see _project_types in Ember.TEMPLATES, but I keep getting a Not Found error.

I have tried using it the following ways:

{{partial 'project_types'}}
{{partial '_project_types'}}
{{partial 'projectTypes'}}
{{> '_project_types'}}
{{> 'projectTypes'}}
{{> 'project_types'}}

When I use the {{>}} syntax, an error is thrown from handlebars.js

Uncaught Error: The partial projectTypes could not be found 

When I use the handlebars helper, the error is thrown from ember.js

"Unable to find partial with name '_project_types'."
@AlexRiedler
Copy link
Collaborator

@mehulkar would love to fix this; PR's are welcome... is it something to do with how registration occurs? maybe for ember and partials?

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