ember-cli-with-relative-path

1.0.1 • Public • Published

ember-cli-with-relative-path

A helper for defining relative paths to routes. Usage:

{{#link-to (with-relative-path 'child-route') ...}}

This will generate an absolute route path, prepending the current route path to the provided value.

By default, the helper will replace a trailing index in the current route path with the provided value. If this behaviour is not desired, turn it off as such:

{{#link-to (with-relative-path 'child-route' replaceIndex=false) ...}}

Installation

ember install ember-cli-with-relative-path

Development

  • git clone https://github.com/tstormk/ember-cli-with-relative-path.git
  • npm install
  • ember server
  • Visit the dummy app at http://localhost:4200.

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Readme

Keywords

Package Sidebar

Install

npm i ember-cli-with-relative-path

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

453 kB

Total Files

9

Last publish

Collaborators

  • tstormk