[Dancer-users] Dancer routes, Padre, function list

Nick Knutov mail at knutov.com
Mon Aug 27 19:36:37 CEST 2012


Hello all,

I did a little patch, which should show Dancer routes in Padre's 
Function List. But I need some help ;)

Dancer routes are shown with this patch, but nothing happens when I 
double click on it. Have no ideas why. Can somebody help with it?


VirtualBox Perl # pwd
/usr/local/share/perl/5.14.2/Padre/Document/Perl

VirtualBox Perl # diff -c FunctionList.pm.orig FunctionList.pm
*** FunctionList.pm.orig	2012-04-19 18:36:17.000000000 +0600
--- FunctionList.pm	2012-08-27 23:29:45.068781182 +0600
***************
*** 30,35 ****
--- 30,38 ----
   				|
   				\* (\w+(?:::\w+)*) \s*=\s* (?: sub\b | \\\& )
   			)
+ 			|
+ 			(?:^|$newline)\s*
+ 			(?:any|get|post|ajax|head)\s+[\'|\"](.+?)[\'|\"]\s*=>
   		)
   	}sx;



-- 
Best Regards,
Nick Knutov
http://knutov.com
ICQ: 272873706
Voice: +7-904-84-23-130


More information about the Dancer-users mailing list