1.0.1 • Published 1 year ago

ember-template-assert v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

ember-template-assert

Small addon that makes Ember's assert utility available as a template helper. Completely removed from production builds.

Compatibility

  • Ember.js v3.28 or above
  • Ember CLI v3.28 or above
  • Node.js v14 or above

Installation

ember install ember-template-assert

Usage

Usage is identical to the assert utility provided by Ember. See: https://api.emberjs.com/ember/release/functions/@ember%2Fdebug/assert for comprehensive documentation.

// template.hbs
{{assert "myVariable needs to be truthy" this.myVariable}}

Contributing

See the Contributing guide for details.

License

This project is licensed under the MIT License.

1.0.1

1 year ago

1.0.0

1 year ago