Questions tagged [emblem.js]

Ember-targeting, indentation-base templating language that compiles to Handlebars.js

Emblem.js is an indentation-based templating language that compiles to Handlebars. It is therefore

  • Efficiently/easily precompilable
  • Compilable in the browser
  • Fully compatible with Ember.js's auto-updating templates
  • Way more fun to write/maintain than {{mustached}}'d HTML

Useful links:

61 questions
1
vote
3 answers

Create a nested route with a dynamic segment in Ember.js

I have a nested edit route for one of my resources: @resource 'organization', path: 'organizations/:organization_id', -> @resource 'organization.edit', path: '/edit' I link to it like this (using Emblem.js): linkTo 'organization.edit'…
nullnullnull
  • 8,039
  • 12
  • 55
  • 107
0
votes
1 answer

ember template can't find my custom helper

I created a helper called graph-helper.coffee which will compile to js. When it compiles, it successfully creates the js copy of the helper graph-helper.js, but in my template, when I do {{graph-helper ___ ____}} the console tells me: "Assertion…
0
votes
0 answers

Creating charts in emblemjs with SVG

I am trying to create multiple charts using svg using the "each" idiom I found on the emblem website. However, it returns the error: throw peg$buildException(null, peg$maxFailExpected, peg$maxFailPos); ^ SyntaxError: Expected _4BeginStatement or…
0
votes
1 answer

How to use jquery-validation on emberjs properly?

I am trying to create a simple validation to require name (will add more validations later). The app an ember app, and we want to use jquery validation. I am having trouble just to get a basic validation running. This is what I…
Iggy
  • 5,129
  • 12
  • 53
  • 87
0
votes
0 answers

Dynamic component not rendering when passed into child component

I am trying to pass in a component constructor to a child component, but when I do I get an error message: Assertion Failed: A helper named 'parent.section' could not be found //parent-form.js form-component as |f| ... child-component…
dmoss18
  • 867
  • 1
  • 12
  • 25
0
votes
0 answers

Create a CSV from Ember Data model objects?

I have a model in Ember with two actions/components associated. The first, runQuery, queries the store and retrieves results. The second downloadCSV should ideally take the model attributes headers and rows (generated and formatted from PapaParse)…
BarFooBar
  • 1,086
  • 2
  • 13
  • 32
0
votes
1 answer

Simple search with Emberjs not working

I am trying to implement a simple search feature, which will filter the results and update the listing. I tried almost every single tutorial out there, every tutorial seems to be working with its jsfiddle but when I apply the same thing on my…
Shahroon
  • 307
  • 2
  • 15
0
votes
2 answers

GoogleMaps API with Emberjs

I have a GoogleMap with EmberJs view. Everything works good except the data binding. I want to bind the map markers with ember-data. If something changes at data level it must reflect on Map. I tried to use observer, and re-run the makeMarkers…
Shahroon
  • 307
  • 2
  • 15
0
votes
1 answer

Ember.Select in emblemjs

I am trying to use Ember.Select in my template. Ember.Select works without any attribute | properties. But when I specify a attribute content, it gives me error as Uncaught Error: assertion failed: an Ember.CollectionView's content must implement…
Saba
  • 3,418
  • 2
  • 21
  • 34
0
votes
1 answer

SortBy in Ember.js not working on newly created Items

I applied a sortBy on date(time) attribute like this, cars = @store.all('car') cars.filter (car) => if car.get('name') == undefined @store.find('car', car.get('id')).then -> console.log('record found') else …
Shahroon
  • 307
  • 2
  • 15
0
votes
1 answer

Need ember model to return array promise not object

I am trying to return a array promise to my model so that I can loop through the results in my template. I need the contact products to return as an promise array and not a promise object. Model : App.ContactEditorRoute = Ember.Route.extend({ …
Kyle Snell
  • 81
  • 1
  • 1
  • 11
0
votes
1 answer

How to bind response of Ajax request to Model in EmberJs?

I am new to Ember, I have a running application where I need to put Chat app in it. I need to have list of last messages of different users from Chat model (Rails end) {Done} On clicking any message I will have a list of conversation of that…
Shahroon
  • 307
  • 2
  • 15
0
votes
2 answers

How to do an inline comparison condition to apply a class in emblem?

I want to do something like this: li class={aProperty=="alpha":active} Plain Text where I am using a property, and seeing if it matches a value, as opposed to a simple boolean. What is the valid emblem syntax for this? The syntax docs only show…
ahnbizcad
  • 10,491
  • 9
  • 59
  • 85
0
votes
1 answer

Multiple event listener syntax in Emblem JS?

The Emblem syntax guide shows you can attach actions to an element like this a click="toggleHeader" my plain text which compiles to this in handlebars: my plain text For multiple event listeners on the…
ahnbizcad
  • 10,491
  • 9
  • 59
  • 85
0
votes
0 answers

How to add Addepar ember-widgets to EmberCli project?

I want to add Addepar ember-widgets to my project. I have installed it with bower install ember-widgets --save. During the installation it asked me to chose versions for jquery, ember and bootstrap saying that it can not find the appropriate…
Azaryan
  • 328
  • 1
  • 3
  • 15