-
Notifications
You must be signed in to change notification settings - Fork 35
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
API for tag
definitions is terribly hacky
#78
Comments
Didnt quite catch. How is it hackey? And what is your solution code wise? |
setup ctx do
if :foo in ctx.tags do
# …
end
end The "hacky" part is that it does something different from what (I believe) most Elixir developers would expect it to do, which mean that: @foo "bar"
tag @foo do
# …
end Would define |
I use them, but API is odd, for me more natural way would be
So then it would be like so
I personally don't like the idea with Doesn't it work already? As setup should get tags. Currently Please look into #74 |
It uses terrible hack to allow syntax in form:
Instead it should set tag value as a field in a
context
that is passed to thesetup
and force user to match on tags there. It would provide much nicer API and would de-cruft the implementation form hacks.The text was updated successfully, but these errors were encountered: