Re: [Pharo-users] Zinc server with static and non-static files

2020-03-28 Thread Davide Varvello via Pharo-users
--- Begin Message --- Thanks Sven, crystal clear! Davide Sven Van Caekenberghe-2 wrote > Hi Davide, > > What Norbert says is all correct and useful. Go read the code of the > classes he mentions. > > I wanted to add, that fundamentally, all this (dispatching/configuring), > is not difficult to

Re: [Pharo-users] Zinc server with static and non-static files

2020-03-28 Thread Sven Van Caekenberghe
Hi Davide, What Norbert says is all correct and useful. Go read the code of the classes he mentions. I wanted to add, that fundamentally, all this (dispatching/configuring), is not difficult to understand or to follow. Even with the aptly named ZnDefaultServerDelegate you can already do a lot,

Re: [Pharo-users] Zinc server with static and non-static files

2020-03-28 Thread Davide Varvello via Pharo-users
--- Begin Message --- Hi Norbert, Thank you very much for the suggestion!! Davide NorbertHartl wrote > There is ZnPrefixMappingDelegate you can use. > > server >delegate: (ZnPrefixMappingDelegate > map: 'static' to: staticFileDelegate; > map: 'app' to: myApp). > > There is also

Re: [Pharo-users] Zinc server with static and non-static files

2020-03-28 Thread Norbert Hartl
There is ZnPrefixMappingDelegate you can use. server delegate: (ZnPrefixMappingDelegate map: 'static' to: staticFileDelegate; map: 'app' to: myApp). There is also ZnStaticFileDecoratorDelegate if you want to mimick another typical setup where all urls that resolve to a file get s