/ember-string-fmt

String interpolation, formally know as `Ember.String.fmt`

Primary LanguageJavaScriptMIT LicenseMIT

ember-string-fmt

Build Status

The string interpolation function formally known as Ember.String.fmt.

Ember.String.fmt has been depreciated in favor of ES6 String Templates which should be used in most cases. If you construct string templates dynamically, you may find fmt useful.

Installation

ember install ember-string-fmt

Usage

import fmt from "ember-string-fmt";

let name = "Alex";
let greeting = fmt("hi %@", name); //=> 'hi Alex'

Repository Installation

  • git clone this repository
  • npm install
  • bower install

Running

Running Tests

  • npm test (Runs ember try:testall to test your addon against multiple Ember versions)
  • ember test
  • ember test --server

Building

  • ember build

For more information on using ember-cli, visit http://www.ember-cli.com/.