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

DEPRECATION: Explicit component declarations will be interpreted as angle-bracket components in a later release #286

Closed danielspaniel closed 7 years ago

danielspaniel commented 7 years ago

Howdy, I upgraded to 0.8 and I am getting deprecations.

I found ( in other issues ) that you are preparing to support glimmer components and need to differentiate between components, html tags and glimmer components.

But I am not sure what the proper syntax is in this new version and can't seem to get rid of those deprecations.

Can you give me a clue or two?

thec0keman commented 7 years ago

Could you specify which deprecation notices are being thrown?

danielspaniel commented 7 years ago

That question made me look at the deprecation one more time, and then look right below it:

DEPRECATION: Explicit component declarations will be interpreted as angle-bracket components in a later release: project-units File: schema-ember/templates/stacking/-area-driven-properties.emblem

where is says the File name

I was confused because project-units is also a file .. but clearly the message was telling me where to look and what to look at. So I this is a quality facepalm.

I am going to close this, but just might be nice to have a blurb when the angle brackets are supported to know how to set up the syntax for those.

thec0keman commented 7 years ago

Yeah we should put together a quick guide here about what some of those mean.

The goal is eventually to make this be an angle bracket component:

my-component foo=bar

and this be the traditional component:

= my-component foo=bar

Thanks!

shelby-carter commented 7 years ago

The new syntax is mentioned here http://emblemjs.com/idioms/ but deprecated version still persists here http://emblemjs.com/syntax/ which is confusing and led me to this ticket. Also posted about the issue here #240

ELLIOTTCABLE commented 5 years ago

As @anton-iskandiarov noted, the docs still suggest using link-to without the = syntax — not just on http://emblemjs.com/syntax/, but also on http://emblemjs.com/idioms/.

(Maybe open a seperate documentation-Issue, @anton-iskandiarov? (=)

thec0keman commented 5 years ago

Yeah, the docs are very out of date :( I think this is one of the biggest needs for Emblem right now