You can buy this project and download/modify it how often you want.
#foreach($elm in $control.controls) $insert.control($elm.name) #end