Skip to content
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

Custom manifest guide #16

Open
kristianmandrup opened this issue Mar 5, 2017 · 0 comments
Open

Custom manifest guide #16

kristianmandrup opened this issue Mar 5, 2017 · 0 comments

Comments

@kristianmandrup
Copy link

Would be nice with a small guide on creating a custom manifest file.
I see the lodash one from fus-ext includes the following to first import lodash into _ variable, then some adds all those functions to ..

_: import "lodash"
..'export: x ->
    # Use lodash to receive all `..`.
    _

A more elegant/intelligent approach where functions available are added depending on type of last return value (I assume). Ie. could be used to add underscore.string functions when x is a string, otherwise lodash etc. Perhaps even Math functions for Number and so on.

..'export: x ->
    if x is String
        feString
    else
        _

For now I'd like to use my powerdash instead of lodash :)

Cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant