good one #1

merged 1 commit into from Apr 11, 2012


None yet

2 participants

fayland commented Apr 11, 2012

I can't find more bugs. and I'm trying to use it in my new site.

how will you dispatch to different resources based on path? is there any good example? (whatever language is OK)


stevan commented on 3df237f Apr 11, 2012

Nice catch, send a pull request whenever you are ready please.


actually the module is good enough that I can't find more bugs. :)

@stevan stevan merged commit 2a0c4e4 into sartak:master Apr 11, 2012
stevan commented Apr 11, 2012


I plan to do resource dispatching using Plack::App::UrlMap, where each endpoint is handled by web-machine. However I have not yet gotten to this stage in my own code, so there may be some things missing from this plan. Please keep me up to date as to your efforts.

  • Stevan
stevan commented May 8, 2012


I wanted to let you know a few things.

First I have added a dependency to HTTP::Headers::ActionPack, which will be released to CPAN by the end of this week.

Second, I have added some very very simple path deconstruction tools to Web::Machine::Util, you can see the docs here and I have updated the env resource example to use this method. I still plan to do the first part of dispatching with Plack::App::UrlMap, but this feature should provide a way to do very simple path deconstruction and dispatching if you want. If you need something more complex, I suggest using one of the many fine path dispatching modules on CPAN.

And lastly, I was wondering if you had any feedback on your usage?



fayland commented May 9, 2012

Yes. it looks good. more the example is more close to the erlang one.

I was using $req->path_info =~ /blabla/ and bind_path looks like a nice shortcut.

I'd love to see that it is released to CPAN. :)


stevan commented May 9, 2012


I hope to release to CPAN in about two weeks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment