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

Simplify Rules/Tasks method calling #1

Open
mjbrisebois opened this issue Oct 12, 2017 · 3 comments
Open

Simplify Rules/Tasks method calling #1

mjbrisebois opened this issue Oct 12, 2017 · 3 comments

Comments

@mjbrisebois
Copy link
Contributor

Instead of a bunch of array's in array's,

"__tasks__": [
    [ "Check.auth.isAdmin",  "< input.auth" ]
]

It could just be an evaluated string. This makes it easily recognizable as code that is being run.

"__tasks__": [
    "Check.auth.isAdmin( this.input.auth )"
]
@mjbrisebois
Copy link
Contributor Author

Populater will have to register all the rules/tasks methods for that to work

@mjbrisebois
Copy link
Contributor Author

mjbrisebois commented Oct 25, 2017

@mottersheadt
Example of restrictive syntax

Avoid looking like code so that we don't have to support other typical code operations

"__tasks__": [
    "Check.auth.isAdmin | input.auth, params.hello, hey()"
]

@mjbrisebois
Copy link
Contributor Author

Idea for non-restrictive reference replacement syntax

"__tasks__": [
    "=Check.auth.isAdmin( =input.auth=, =params.hello=, =hey()= )="
]

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