Comments (4)
I suspect something went wrong with the install or perhaps you're invoking it incorrectly. Would you mind posting your package.json and maybe a snippet of you using the gt
helper in a template.
from ember-truth-helpers.
Cheers for the reply man!
package.json
{
"name": "***",
"version": "0.0.694",
"description": "",
"main": "app.js",
"scripts": {
"test": ""
},
"author": "***",
"license": "ISC",
"devDependencies": {
"bower": "^1.5.2",
"del": "^1.2.1",
"ember-truth-helpers": "1.2.0",
"gulp": "^3.9.0",
"gulp-autoprefixer": "^2.3.1",
"gulp-bower": "0.0.10",
"gulp-bump": "^0.2.2",
"gulp-concat": "^2.4.3",
"gulp-copy": "0.0.2",
"gulp-ember-templates": "^0.6.0",
"gulp-es6-module-transpiler": "^0.2.2",
"gulp-git": "^1.4.0",
"gulp-if": "^1.2.5",
"gulp-jasmine": "^2.0.1",
"gulp-rename": "^1.2.2",
"gulp-replace": "^0.5.4",
"gulp-sass": "^2.0.4",
"gulp-shell": "^0.3.0",
"gulp-sourcemaps": "^1.5.2",
"handlebars": "2.0.0",
"http-server": "^0.7.5",
"jasmine-reporters": "^2.0.6",
"main-bower-files": "^2.9.0",
"run-sequence": "^1.1.4",
"selenium-standalone": "^4.4.2",
"webdriverio": "^2.4.5",
"yargs": "^3.25.0"
},
"dependencies": {}
}
usage
{{#if (gt view.content.length 1)}}
yay
{{else}}
nay
{{/if}}
Cheers :)
from ember-truth-helpers.
What Ember version are you using this with?
from ember-truth-helpers.
One thing that stands out to me is that in your package.json
I see a lot of gulp and very little Ember CLI. But you also stated that you ran ember install ember-truth-helpers
.
Are you trying to use Gulp instead of Ember CLI? If so, that is definitely the problem here. I've heard of people using Gulp, I've never used it so I can't really help. But if you're new to Ember I would really really recommend using Ember CLI. Most of the addons you'll find, like this one, require Ember CLI.
The TL;DR; is that Ember CLI will traverse that packages, pick up all ember addons, process them and load them into the application space. It seems like in this case the Ember runtime is unable to find the gt
helper. Likely because it's not being picked up by the Gulp buildtools.
from ember-truth-helpers.
Related Issues (20)
- Helper "not" has wrong value when passing PromiseProxy
- not-eq has unknown reexport HOT 1
- Helper is-empty returns false when passing undefined
- Update to ember-cli-babel@7 HOT 2
- `or` doesn't work the same way as `||` in JavaScript HOT 3
- Update `README` to note that `or`, `and` and `xor` **do** short-circuit HOT 2
- Short-circuit Problem With `SafeString` Using `or` (And Maybe Other Helper)
- Ember Global Deprecation Warning HOT 1
- `or` cant be used when or condition value can be `false` HOT 7
- Project maintenance HOT 4
- Typescript conversion HOT 1
- Can't `npm i` master branch to use with `ember-template-imports` HOT 2
- Cut a release? HOT 12
- Incorrect glint return type for `or` helper in 4.0.0-beta.0 HOT 2
- [QUESTION] `ember-source` compat HOT 3
- `and` returns non-boolean value rather than converting it (which breaks default value logic)
- Document usage with glint additionalSpecialForms config HOT 1
- Memory leaks with `and ` and `or` after they were converted to class based helpers HOT 3
- Importing from package root does not work in classic builds + `.gts`
- Show how to use in template imports
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ember-truth-helpers.