Questions tagged [htmlbars]

HTMLBars is the EmberJS templating system replacement for Handlebars starting with v1.10.0

HTMLBars is the templating system replacement for starting with v1.10.0. You can check the source code here.

116 questions
0
votes
1 answer

Ember afterRender not waiting for promises

I want to know when all content has rendered the first time, but Ember.run.scheduleOnce('afterRender' isn't enough because there are promises in the template. {{#each entity in model.entities}} {{entity.anotherEntity.name}} {{/each}} {{!-- more…
Kelly Selden
  • 1,238
  • 11
  • 21
0
votes
1 answer

How can I update ember-i18n component to work in ember 1.10 with HTMLbars?

My ember 1.8 app is built with grunt CLI and migrating to ember CLI isn't working out, but I'm upgrading to ember 1.10 so can use HTMLbars. The app uses ember-i18n so after loading and resolving models as it transitions to the first View, I get the…
bobvan
  • 251
  • 3
  • 9
0
votes
1 answer

Access view helper directly with Ember.Handlebars.helpers.view in ember 1.10.0

This code worked in ember 1.7.0: var ViewTemplateHelper = Ember.Handlebars.makeBoundHelper(function(templateString, options) { var dummy = Ember.View.extend({ classNames: ['view-template'], template:…
adriaan
  • 1,088
  • 1
  • 12
  • 29
0
votes
1 answer

HTMLBars helper with inverse

I'm trying to build a helper w/ an else block. I can only find handlebars examples. They show that options.inverse is a function, but for my HTMLBars helper the options.inverse is an object. (e.g not callable) template code: {{#can 'audit' 'user'…
hewsonism
  • 424
  • 4
  • 11
0
votes
0 answers

Execute arbitrary javascript inside htmlbars template

I'm working on an Ember.js application that displays content from a Wordpress backend. In addition to text, this content can contain arbitrary javascript that is typical in the embed code of various social media sites (Facebook, Instagram,…
Dhaulagiri
  • 3,281
  • 24
  • 26
-1
votes
2 answers

EmberJS 1.13 Templating - script elements from htmlSafe string not executing JS

I have observed that, while writing JS in script tags into the template will run the script, inserting them into the template using a Handlebars expression will prevent it from running. I have tried writing this into my component: test:…
Jan
  • 1
  • 2
-1
votes
2 answers

Loading data from JS object using Ember HTMLbars template

I am a front end developer. In my webpage I was loading data from static JS object using Handlebars template. Now I planned to upgrade to Ember. I don't know where to keep my JS file and how to access JS object using HTMLbars template. Kindly help…
prakashstar42
  • 677
  • 1
  • 6
  • 16
-1
votes
1 answer

Ember {{component}} custom component

I am new to Ember and noticed the following code in my Handlebars: {{component sec.myCompRef secInfo=sec fields=model.myMap}} Does Ember have some helper like {{component}}? If yes, how does it work? I have generally seen custom…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
-1
votes
1 answer

Ember Handlebars Iterate object and display key inside nested each helper

I want to iterate and render some text in my Ember Handlebars template I have a JSON as below; (comes within item) "reas":{"Display Text 1":[null],"Display Text 2":[null]} I want to display the text (Display Text 1/Display Text 2) on UI i.e. keys…
copenndthagen
  • 49,230
  • 102
  • 290
  • 442
-2
votes
1 answer

EmberJS 2.7 assertion failed passing id of nested object

EmberJS 2.7 Error: Assertion Failed: id passed to findRecord() has to be non-empty string or number app/templates/products/index.hbs: [inside the model/each loop I have this line]: {{#link-to 'categories.edit' product.category.id}}
rmcsharry
  • 5,363
  • 6
  • 65
  • 108
-4
votes
1 answer

HTML bar should cross all divs

i have a problem with html or css or both. i am looking for a possibility to create a bar that crosses all divs. The picture above demonstrates my project. I would like to do it in css rather than to place a separate picture. Is that…
manuel
  • 1,127
  • 1
  • 8
  • 15
1 2 3 4 5 6 7
8