[dancer-users] I would like to present to you my first attempt...

Punter punter at punter.gr
Sat Mar 2 10:58:15 GMT 2013


Allow me to present to you my first attempt at making Dancer2 compatible 
with Plack::Builder. That is, allowing multiple Dancer2 apps to be 
mounted with Plack::Builder:

https://github.com/akarelas/Dancer2/commit/8bb4e37365eccc8e4f6dfa388d4dccf5e66fa46d

The above modification (a *very few* lines of code) make Plack::Builder 
able to mount two web different webapps, for example take a look at 
these 2 minimalistic web apps:

http://paste.perldancer.org/3272qupgjyQIq

It works, until you set both web app classes to "use" a common class 
with another (common between them) route. Then only the first web app 
will load it. Which is not good.

- Punter


More information about the dancer-users mailing list