Hi Russell, Thank you very much, it worked! 3rd line solved problem! 1 #Product.pm 2 package Product; 3 use Dancer2 appname => 'myproject'; get /product { } But while reading article, I realized another issue; Now my main application file is myproject.pm And I am applying following command to restart application cd myproject plackup -r bin/app.psgi At article you sent, it uses .pl file as follow # app.pl use myproject; use Product; # single application composed of routes provided in multiple files project->to_app; Which one is better? If recommended method is using app.pl, at which directory should it be? On Sun, Sep 13, 2015 at 3:59 PM, Russell Jenkins <russell.jenkins@strategicdata.com.au> wrote:
On 13/09/2015 10:43 pm, Kadir Beyazlı wrote:
How can I do it?
There was an article about this in the 2014 advent series: http://advent.perldancer.org/2014/10
The rest of last years advent articles are worth reading too. ( Sawyer++ )
Regards, Russell.
_______________________________________________ dancer-users mailing list dancer-users@dancer.pm http://lists.preshweb.co.uk/mailman/listinfo/dancer-users
-- Kadir Beyazlı Computer Engineer GSM : +90 535 821 50 00