Skip to content

Releases

Ember.String.interpolate v2.0.0

Choose a tag to compare

@jayphelps jayphelps released this 25 Feb 18:50
  • Includes 2.0 of https://github.com/jayphelps/string.interpolate.js (which actually powers most of the functionality) which includes:
  • Undefined or null values are replaced by an empty string, like Handlebars does. Fixes #2.
  • Global variables are looked up again, which regressed in the previous version.
  • Bower registered

Ember.String.interpolate v1.1.0

Choose a tag to compare

@jayphelps jayphelps released this 28 Jan 21:34
  • Helpers have been moved to be more consistent with the Ember.js API
var Robot = Ember.Object.extend({
    status: 'offline',

    /**
     * Most common and cleanest form, using native prototype extensions
     */
    statusMessage1: 'robot is $status'.interpolate(),

    /**
     * Alternative form, if you have native prototype extensions off
     */
    statusMessage2: Ember.computed.interpolate('robot is $status'),

    /**
     * Manual interpolation, possibly useful in observers or other cases.
     */
    statusMessage3: function () {
        return Ember.String.interpolate('robot is $status', { status: this.get('status') });
    }.property('status')
});

Ember.String.interpolate v1.0.0

Choose a tag to compare

@jayphelps jayphelps released this 28 Jan 21:34

First stable release.

  • Fixed issues with multi-level lookups (e.g. $foo.bar)
  • Most of the logic has been extracted to a generic, library agnostic library: String.interpolate.js. Only the Ember-goodness is here now, like having it be a property.

Ember.String.interpolate v0.1.0-alpha

Pre-release

Choose a tag to compare

@jayphelps jayphelps released this 28 Jan 21:36

Known issues:

  • Currently doesn't support mult-level properties, meaning for $controller.something, only controller is looked up. This is a bug and a fix is being tested.