You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Background on what I'm working on: I'm trying to use G-C-H to help me theme a ZenDesk Help Center. To do so, I need to stub out some of their custom helpers, such as link.
What I can't figure out how to do is write a helper that will work as a block version of the helper, meaning I'd like to do something like {{#link 'help_center'}}Custom link text{{/link}} — I can't figure out how to get that "Custom link text" string available to me within the helper.
That empty line is the result of the console.log( options.fn() ) line. It's definitely seeing something, because in another part of the template, when I use {{link 'help_center'}}, not as a block, fn doesn't come up.
Ultimately, I just want to generate <a href="#">Custom link text</a> (possibly some other attributes and such, but I'm having good luck so far finding those in places like the options.hash)
Any tips on how I can pull in that wrapped text?
And to further complicate matters, it's possible that wrapped text might include more handlebars tags, which might need to be generated for use somehow too.
(Hope submitting an issue was the right way to go....)
The text was updated successfully, but these errors were encountered:
Background on what I'm working on: I'm trying to use G-C-H to help me theme a ZenDesk Help Center. To do so, I need to stub out some of their custom helpers, such as link.
What I can't figure out how to do is write a helper that will work as a block version of the helper, meaning I'd like to do something like
{{#link 'help_center'}}Custom link text{{/link}}
— I can't figure out how to get that "Custom link text" string available to me within the helper.Helper I've written so far:
yields a result of:
That empty line is the result of the
console.log( options.fn() )
line. It's definitely seeing something, because in another part of the template, when I use{{link 'help_center'}}
, not as a block,fn
doesn't come up.Ultimately, I just want to generate
<a href="#">Custom link text</a>
(possibly some other attributes and such, but I'm having good luck so far finding those in places like theoptions.hash
)Any tips on how I can pull in that wrapped text?
And to further complicate matters, it's possible that wrapped text might include more handlebars tags, which might need to be generated for use somehow too.
(Hope submitting an issue was the right way to go....)
The text was updated successfully, but these errors were encountered: