次のようなビューがあるとしましょう。
App.AnchorView = Ember.View.extend({
tagName: 'a',
attributeBindings: ['href']
});
およびクラス定義:
App.Item = Ember.Object.extend({
name: "Unknown Entry",
location: ""
});
およびクラスのインスタンス:
App.Item.create({
name: "Google",
location: "http://www.google.com"
});
私のテンプレートは次のとおりです。
{{#view App.AnchorView}}{{name}}{{/view}}
そして、私はそれを次のようにレンダリングしたい:
<a href="http://www.google.com">Google</a>
それ、どうやったら出来るの?