Edit and code links editlocal

The e and c links in the bottom profiling pane display when ds is enabled and the profiling is running for page renders. The c link sends the body of the cached compiled code and the e link sends the filename with a mimetype of application/x-editlocal which you can have run a script which will start an editor session on a local copy of that file (or potentially a tramp or Ange-FTP session in emacs).

An example editlocal.sh script would look something like:

#!/bin/sh
# an example editlocal script.  To use tell your browser to use
# it to open files with mimetype application/x-editlocal
#
SERVERROOT=/web/head
for a in `cat $1`
do
    if [ -f "$a" ] 
    then 
        emacsclient -n "$a"
    elif [ -f "$SERVERROOT/$a" ]
    then 
         emacsclient -n "$SERVERROOT/$a"
    fi
done