Creating Web applications with Ember.js

前端 未结 2 1595
清酒与你
清酒与你 2021-02-04 16:54

I\'ve just found out about Ember.js, and it looks interesting. I\'d like to create a small notes app to learn how to use it.

The basic layout I have in mind is to have c

2条回答
  •  名媛妹妹
    2021-02-04 17:39

    For simple wrapper-style layouts you can use Ember's built-in layout support. It only supports a single {{yield}} so may be too limited for your application.

    For something a little more robust take a look at ghempton's Ember Layout. I think you'll find it quite similar to Rails layouts. He has a live example here.

    Finally, it's fairly easy to create a hierarchy of views in Ember (instead of or in addition to using layouts). Tom Dale has a good collection of Ember resources and examples here.

提交回复
热议问题