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
3
votes
0 answers

Standalone HTMLBars runtime compiler

I'm currently using Backbone.js as my front-end management library and am now looking for a template engine to go alongside it. Underscore/Lodash are great but not quite comprehensive enough. Until/if I find a better client-side compiler, I'm using…
Chris Bornhoft
  • 4,195
  • 4
  • 37
  • 55
3
votes
1 answer

Rails fails precompile with ember-template-compiler

After upgrading to Ember.js 1.13.2 from 1.10.beta4 we are no longer able to precompile Handlebars templates which have deprecation warnings in production. Please see the error and traceback for rake assets:precompile below. Oddly, we don't get any…
dobe
  • 31
  • 4
3
votes
1 answer

ember-2.0 angle-bracket component not working with ember-cli@0.2.7

Please what else do I need in order for ember-2.0 angle-bracket component to work with the latest ember-cli I am using ember-cli 0.27, nodejs 0.12.4 and emberjs-canary branch to test out emberjs-2.0. I created a bare bones new ember app with: …
brg
  • 3,915
  • 8
  • 37
  • 66
3
votes
3 answers

Recording values of radio buttons in ember

I am fairly new to Ember (using version 0.2.3). I have a component with a few computed values. They gather these computed values from input fields: export default Component.extend({ loanAmount : 200000, deductible : 0, debtInt : 5, …
sbatson5
  • 648
  • 11
  • 19
3
votes
1 answer

Input helper valueBinding is deprecated - what's the alternative?

I've got a few text-input helper like this {{input type="text" valueBinding="name" focus-out="focusOutName"}} I just upgraded Ember to 1.11.0 and now get this deprecation warning: DEPRECATION: You're attempting to render a view by passing…
Hedge
  • 16,142
  • 42
  • 141
  • 246
3
votes
2 answers

Ember.js: conditional input attribute

In Ember's input helper, how can I show/hide attributes based on a condition? For example, let's say I want to show required="required" if isEditable is true and disabled="disabled" otherwise. Currently I have something like this: {{#if…
Johnny Oshika
  • 54,741
  • 40
  • 181
  • 275
3
votes
0 answers

Extending link-to helper in Ember 1.10

How should I create helpers for Ember 1.10 version? Ember.Handlebars.helper('my-link-to', function() { # Some cool logic here return Ember.Handlebars.helpers['link-to'].apply(this, arguments); }); ...