#!/usr/bin/perl # use strict; unless (-d $ENV{'LJHOME'}) { die "\$LJHOME not set.\n"; } chdir $ENV{'LJHOME'} or die "Can't cd to $ENV{'LJOME'}\n"; ### apidoc.pl does all the hard work. my $VAR1; eval `bin/apidoc.pl`; my $api = $VAR1; print "\n"; print "
\n"; print "\n"; print "
\n"; print " Description: \n"; print "$f->{'des'} \n"; if (@{$f->{'args'}}) { print " Source: \n"; print "$f->{'source'} \n"; print " Arguments: \n"; print "$argstring \n"; } if ($f->{'returns'}) { xlinkify(\$f->{'returns'}); print " \n"; print " \n"; foreach my $arg (@{$f->{'args'}}) { print "
\n"; } print " $arg->{'name'} "; my $des = $arg->{'des'}; xlinkify(\$des); print "$des \n"; } print " Returns: \n"; print "$f->{'returns'}