Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Multiline statements in Emblem.js

I'm developing Ember.js application using Emblem.js as template precompiler.

I have an ember component with a lot of bindings

= delivery-map deliveryZones=deliveryZones selectedZone=selectedZone drawingZone=drawingZone isPolygonEditing=isPolygonEditing

Not very good looking... So I want to make it look more like this:

= delivery-map
  deliveryZones=deliveryZones
  selectedZone=selectedZone
  drawingZone=drawingZone
  isPolygonEditing=isPolygonEditing

Is there a way to do something like this in Emblem.js?

like image 948
DaZzz Avatar asked Aug 04 '14 12:08

DaZzz


1 Answers

yes, now you can do

delivery-map [
  deliveryZones=deliveryZones
  selectedZone=selectedZone
  drawingZone=drawingZone
  isPolygonEditing=isPolygonEditing ]
like image 97
RichardJohnn Avatar answered Oct 08 '22 01:10

RichardJohnn