Skip to content

Undocumented development tips and tricks

sdondley edited this page Dec 12, 2017 · 3 revisions

Some undocumented (until now!) and possibly useful tips and tricks that can make your Dancer2 development process more joyful.

Get vim to fold on Dancer2 route handlers

If you use the vim text editor and have it configured to fold on subroutines, there's a chance your route handlers are not folding. To get them to fold, add the following line to your .vimrc file:

let g:perl_fold_anonymous_subs = 1

Be sure to reload any open files in vim to make the change take effect: :source <path_to_.vimrc>

Clone this wiki locally