[dancer-users] plugin_setting function

Andrew Beverley andy at andybev.com
Tue Jun 30 09:42:58 BST 2015


On Tue, 2015-06-30 at 00:58 +0300, Kadir Beyazlı wrote:
> my code to test calling plugin (test.pl) and plugin code (MyTest.pm)
> is written below:

[...]

Your code works for me.

> #config.yml
> plugins:
>     "MyTest:
>       key: value

As long as you are using this config file not your other one (with
Dancer2::Plugin::MyTest as the key).

Are you sure your config file is being read and that the YAML is
formatted correctly?

Andy




More information about the dancer-users mailing list