-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need more information on helper API and context #157
Comments
I found this article only to realize it's obsolete as there are not the I wanted to write a |
I think the page http://handlebarsjs.com/block_helpers.html contains pretty much everything about block-helpers that there is to know, but I agree that the site needs some navigation. What you pass to Have a look at this jsfiddle: https://jsfiddle.net/vva7musq/15/ |
Ok. I see it now. The problem is, I struggle to deduct any system on the documentation page. I scanned the page for the helpers, so I clicked to the built-in helpers docs only to find out, there is no info on how to write my own. So I scrolled down to the bottom where there is a API reference. Yaaaay, I thought, there will be everything in a nice order. Well, uh, it is only methods od the hbs object.. and there is The helpers are well hidden under tne button under the blocks section. I understand it now why you call it a block helpers, but it doesn't make sense when you first think about it. I want to know, how to write any helper, then I want to know there are more types of them. At least you could put the button linking to the docs on helper making into the API site and Built In Helpers sites. Thanks |
I'm trying to write a block helper that uses a lot of options so I'm looking for a detailed description of what get's passed by
registerHelper()
.I also need to know exactly what
options.fn()
does and what I can pass to it.Also, can you add a main menu to the site? I'm never sure I've looked in every corner when searching the docs.
The text was updated successfully, but these errors were encountered: