-
-
Notifications
You must be signed in to change notification settings - Fork 363
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
md helper exports async by default #241
Comments
I'm doing this in a project and it's working without the additional code. // helpers
app.helpers(helpers);
app.helper('md', helpers.md.sync); |
hmm, I didn't realize (or remember) that the @blueowl0708 would you mind creating an issue edit: lol I clicked on this from a link on my phone. since the title said "assemble" I thought it was on assemble. anyway, we can change the title of this issue I think. However, it might be better to do what @doowb mentioned, but try also doing: app.asyncHelper('md', helpers.md); |
@doowb Thank you, that's working.. I was just going to ask if that's an issue that needs fixing or if it's just the docs that require an update but having seen @jonschlinkert 's response above that's answered too. I'll raise the new issue shortly, should this issue remain open and be linked? |
just leave as-is for now. I'd like to explore more when I get back, thanks |
@jonschlinkert - title updated, hope this is sufficient.. change it to something more appropriate if not :) Thanks to both you and @doowb for the extremely quick response to this! |
Hi,
I'm using gulp with assemble 0.17.1 and handlebars-helpers 0.7.7 and the md helper isn't working. We're loading the helper module as described in the readme and other helpers are working (e.g. markdown, isnt, foreach).
Usage within the templates is as described in the docs:
{{md 'path/to/md/file.md'}}
The error message i get is:
Error: md async helper expects callback to be a function. Did you mean to use
md.sync
?I'm migrating a site from a very old grunt version of assemble and it uses the md helper quite heavily so I'm keen to get this working. I've managed to bodge around it for now by overriding the md helper, but it's a bit of a bodge and it'd be great if it could work without this :)
`app.helper('md', function (fpath) {
The text was updated successfully, but these errors were encountered: