--- trunk/lib/Frey/Designer.pm 2008/08/16 13:03:44 174 +++ trunk/lib/Frey/Designer.pm 2008/08/16 23:37:42 175 @@ -53,6 +53,18 @@ my $path = template_path( $c->req->path ); + if ( $path =~ m{/__bookmarklet} ) { + $c->res->content_type( "text/html" ); + my $js = read_file( 'static/xpath.js' ); + $js =~ s{//.*}{}gm; # remove comments so that compaction below doesn't screw code + $js =~ s/\s\s+/ /gs; + $c->res->body(qq{ + drag this look to bookmark xpath? to install XPATH inspector +

link test + }); + return; + } + $path .= '.html' if $path !~ m/\.\w+$/; my $url = $self->uri;