Excellent, thank you! Please continue hacking. The ewgi community is
admittedly quite small at the moment, so an email will do just fine.
> The main obstacle in "getting" ewgi was figuring out how the
> middleware is connected in the "real world". I got that they're just
> functions chained together, but all the projects mentioned above are
> lacking good examples on how this "should" be done.
I agree. We are (slowly) working on getting some solid "real-world"
examples out there for people to understand. If you produce any (even
small) projects while hacking around, please feel free to send them to
the list and we will consider adding them/you to the ewgi_examples
project.
Great suggestion. It also frees us from the potential perils of
parameterised modules.
Thanks again and welcome to the group,
Hunter
2009/8/30 Davide Marquês <nes...@gmail.com>:
>Excellent, thank you! Please continue hacking. The ewgi community is
> Hi all, :)
>
> Again I repeated the nasty habit of hacking code before getting to
> know to community. My bad, won't happen again. :)
> I tried out ewgi, ewgi_examples and smak with yaws and found some
> issues that were easy to fix - so I did (please consider this my
> github pull request :)).
admittedly quite small at the moment, so an email will do just fine.
> The main obstacle in "getting" ewgi was figuring out how the
> middleware is connected in the "real world". I got that they're just
> functions chained together, but all the projects mentioned above are
> lacking good examples on how this "should" be done.
run(Ctx, [NoPostApp, FailedPostApp, SuccessPostApp, MaxLength]) ->
Parser = post_parse_middleware(MaxLength, SuccessPostApp, FailedPostApp),
case ewgi_api:request_method(Ctx) of
'GET' ->
NoPostApp(Ctx);
'POST' ->
Parser(Ctx)
end.
I agree. We are (slowly) working on getting some solid "real-world"examples out there for people to understand. If you produce any (even
small) projects while hacking around, please feel free to send them to
the list and we will consider adding them/you to the ewgi_examples
project.
Thanks again and welcome to the group,
Hunter