<div dir="ltr"><div><div>Great!<br><br></div><div>One more question,<br><br>Is there a way to acces to "to_json" and "from_json" on the plugin?<br></div><br></div><div>Thanks!<br></div><div><br></div>Ruben.<br><div><br><div><br><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Oct 14, 2015 at 2:19 PM, Yanick Champoux <span dir="ltr"><<a href="mailto:yanick@babyl.dyndns.org" target="_blank">yanick@babyl.dyndns.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On 2015-10-14 01:49 PM, Stefan Hornburg (Racke) wrote:<br>
> Yanick, would you mind to enhance the POD with this example?<br>
<br>
</span>Done.<br>
<br>
And sometime tomorrow (ie, as soon as I merge my changes), defining<br>
plugin keywords will get even easier:<br>
<br>
<br>
# the classic<br>
plugin_keywords 'foo', [ 'bar', 'baz' ], quux => sub { ... };<br>
<br>
# tag methods as keywords<br>
sub some_keyword :PluginKeyword {<br>
...;<br>
}<br>
<br>
# keyword will be 'bar'<br>
sub foo :PluginKeyword(bar) { ... }<br>
<br>
# keywords "do_it" and "do_them" will both use the method<br>
sub do_studd :PluginKeyword(do_it do_them) { ... }<br>
<br>
# attributes can be exported as keywords too<br>
has foo => (<br>
is => 'ro',<br>
plugin_keyword => 1, # will use keyword 'foo'<br>
);<br>
<br>
has bar => (<br>
is => 'ro',<br>
plugin_keyword => 'baz', # will use keyword 'baz'<br>
);<br>
<br>
has quux => (<br>
is => 'ro',<br>
plugin_keyword => [qw/ this that / ],<br>
# will use keyword 'this' and 'that'<br>
);<br>
<br>
Joy,<br>
`/.<br>
<div class="HOEnZb"><div class="h5"><br>
<br>
_______________________________________________<br>
dancer-users mailing list<br>
<a href="mailto:dancer-users@dancer.pm">dancer-users@dancer.pm</a><br>
<a href="http://lists.preshweb.co.uk/mailman/listinfo/dancer-users" rel="noreferrer" target="_blank">http://lists.preshweb.co.uk/mailman/listinfo/dancer-users</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr">____________________________<br>Rubén Darío Amórtegui Medina<br>MCE - Ingeniero de Sistemas</div></div>
</div>