ember-rails-oauth-example icon indicating copy to clipboard operation
ember-rails-oauth-example copied to clipboard

Hamlbars is a megahack; consider switching to emblem.js?

Open machty opened this issue 10 years ago • 5 comments

Emblem.js was made because hamlbars is quite hacky and requires you to write awkwardly indented things like https://github.com/brandonjmckay/ember-rails-oauth-example/blob/master/app/assets/javascripts/ember-app/templates/sign-in.js.hbs.hamlbars#L5

Would definitely make sense to consider a switch to Emblem here.

machty avatar Apr 02 '14 12:04 machty

This is how I feel about @machty's suggestion: #2

tehviking avatar Apr 07 '14 03:04 tehviking

@tehviking <3

machty avatar Apr 07 '14 03:04 machty

I use haml in other projects I work on, so I thought it'd be nice to keep it consistent.

I'd much rather use some kind of templating engine that reduces all the closing code bits rather than not.

bj-mcduck avatar Apr 11 '14 20:04 bj-mcduck

When I first heard of emblem, I didn't want to pick up another templating language. But it seems very concise, which I like.

bj-mcduck avatar Apr 11 '14 20:04 bj-mcduck

@machty Ok. damn. Emblem does look really good.

bj-mcduck avatar Apr 11 '14 21:04 bj-mcduck