machty / emblem.js

Emblem.js - Ember-friendly, indented syntax alternative for Handlebars.js
http://emblemjs.com
MIT License
1.04k stars 81 forks source link

How would you use the emberjs components with emblem? #106

Closed ekampp closed 11 years ago

ekampp commented 11 years ago

The Emberjs guide on components states that a component should be included simply like this:

  {{blog-post}}

How should this be written in emblem?

machty commented 11 years ago
= blog-post
machty commented 11 years ago

or just

blog-post

should work too

ekampp commented 11 years ago

Thanks! :D

raw1z commented 10 years ago

I tried to use an ember component like this:

.form-group
  = datepicker label="Birthday" value=view.birthday

then like this:

.form-group
  datepicker label="Birthday" value=view.birthday

I got the following error each time (where Cv.IdentitiesController is the controller for the view):

Could not find property 'datepicker' on object <Cv.IdentitiesController>

Am I missing something ? (I'm using emblem-rails)

raw1z commented 10 years ago

Solved :-) Components must have a - in their name