Closed traviswsims closed 10 years ago
not really, because the only way that Hamlbars knows you want to generate a handlebars block ({{#link-to}} ... {{/link-to}}
) instead of expression ({{link-to ... }}
) is that a block is passed. You could try something like:
=hb 'link-to "someResource.index" class="navbar-brand"' {}
Thanks for your quick response and explanation. I tried =hb 'link-to ...' {}
and =hb 'link-to ...' do end
, but got compilation errors.
This isn't a huge deal to me, I just wanted to make sure there wasn't some syntactic sugar I had missed. Thanks again.
Hello all,
Is it possible to have an empty Handlebars link-to helper? Right now, I've got this:
Is there a better way to get an empty anchor tag without escaping the empty line? I'm doing this to add a CSS background image instead of text. Thanks so much.