Skip to content

A set of basic helpers for use in ember applications

License

Notifications You must be signed in to change notification settings

Jakst3r/ember-basic-template-helpers

Repository files navigation

ember-basic-template-helpers

Note: This is a learning project and not intended for production level applications

This add-on provides some very basic helpers for simple use cases. It aims to avoid adding extra CSS selectors or computed properties to service basic template needs.

Compatibility

  • Ember.js v3.4 or above
  • Ember CLI v2.13 or above
  • Node.js v8 or above

Installation

ember install ember-basic-template-helpers

Usage

All helpers are invoked as any other normal ember helper.

Contents

Helpers

debug

Adds a new DEBUG line to the console for each string argument passed to the helper.

{{db "A Debug Message" "Another Debug Message"}}

invert-bool

Takes a boolean value as the first argument and returns the opposite value

{{invert-bool true}}

returns false

capitalise

Takes a string of any case and return the same string in uppercase

{{capitalise 'string'}}

decapitalise

Takes a string of any case and return the same string in uppercase

{{decapitalise 'string'}}

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

About

A set of basic helpers for use in ember applications

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published