-
-
Notifications
You must be signed in to change notification settings - Fork 3
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
maybeInclude seems to not work (for me?) #3
Comments
That's why it's not called @doowb or I can take a look and see what's happening. |
It looks like I'm not sure that's entirely correct logic. It might need to be something like: if (opts[name] || utils.anyExists(name, this.app.cwd)) {
const fn = this.app.getAsyncHelper(helperName);
return fn.apply(this, arguments);
} I think this will find includes that are already on the context and check the filesystem if they aren't. |
It's okey to me to use Feel free to close if you both decide. ;] (edit: side note... what you use for terminal recordings (and gifs)? any ideas? ;d) |
I use http://recordit.co/ sometimes. I'd like to find something that is better for terminal recordings though |
I have
maybeInclude('docs/API.md')
And when it not exists, it's okey.
But when exists it does not includes it.
Using
ifExists
helpers the things are working correctly.ifExists('docs/API.md', include('docs/API.md'))
The text was updated successfully, but these errors were encountered: