Skip to content

Instantly share code, notes, and snippets.

@Piioo
Created March 31, 2014 10:48
Show Gist options
  • Save Piioo/9889746 to your computer and use it in GitHub Desktop.
Save Piioo/9889746 to your computer and use it in GitHub Desktop.
This is not the expert
### foo.js.handlebars
{{#each suggested_experts.experts}}
{{this}}
{{view Discourse.ExpertExpansionView foo=this }}
{{usernmae}}
{{/each}}
### expert_expansion_view.js
Discourse.ExpertExpansionView = Discourse.ContainerView.extend({
init: function(){
this._super();
console.log(this.get('foo'));
}
});
=> Class {suggested_experts: Class, topic: Class, _parentView: Class, templateData: Object, container: Container…}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment