Why on earth would you write something without as as basic a thing as a conditional like if/then/else??? #2011
Unanswered
evilgeniuscreative
asked this question in
Q&A
Replies: 1 comment 1 reply
-
All of the answers I have seen say that you have to write your own helper function to do something as basic as this? You might as well make a bicycle without, you know ... handlebars. JFC |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Before filing issues, please check the following points first:
This will probably help you to get a solution faster.
For bugs, it would be great to have a PR with a failing test-case.
SERIOUSLY??
Error: /Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/views/presidents.hbs: #if requires exactly one argument
at Object. (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/helpers/if.js:17:13)
at Object.wrapper (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
at eval (eval at createFunctionContext (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), :11:47)
at prog (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/runtime.js:268:12)
at execIteration (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:51:19)
at Object. (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/helpers/each.js:61:13)
at Object.wrapper (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/internal/wrapHelper.js:15:19)
at Object.eval [as main] (eval at createFunctionContext (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/compiler/javascript-compiler.js:262:23), :11:49)
at main (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/runtime.js:208:32)
at ret (/Users/studio/GeneralAssembly/Mod2_React_Express/sandbox/SomeSite/node_modules/hbs/node_modules/handlebars/dist/cjs/handlebars/runtime.js:212:12)
Beta Was this translation helpful? Give feedback.
All reactions