Miscellaneous¶
Command Line Utilities¶
Command line utilities are fairly basic at this stage. Installation
location will vary depening on your distribution - most will default to
/usr/local/bin, but may be installed elsewhere in some cases,
especially if you have nominated a PREFIX option when using CPAN.
wdapacheinit-
Runs the WebDyne initialization routines, which create needed directories, modify and create Apache .conf files etc.
wdcompile-
Usage:
wdcompile filename.psp. Will compile a PSP file and use Data::Dumper to display the WebDyne internal representation of the page tree structure. Useful as a troubleshooting tool to see how HTML::TreeBuilder has parsed your source file, and to show up any misplaced tags etc. wdrender-
Usage:
wdrender filename.psp. Will attempt to render the source file to screen using WebDyne. Can only do basic tasks - any advanced use (such as calls to the Apache request object) will fail. wddump-
Usage:
wddump filename. Where filename is a compiled WebDyne source file (usually in/var/webdyne/cache). Will dump out the saved data structure of the compiled file. wddebug-
Usage:
wddebug --status|--enable|--disable. Enable/disable debugging in the WebDyne code. This uses some pretty ugly methods to enable debugging in already installed modules by editing the code on-disk to re-enable debug calls - do not use in a production environment ! webdyne.psgi-
Used to run WebDyne as a PSGI process- usually invoked by Plack via
plackuporstarman, but can be run directly for development purposes. wdlint-
Run
perl -c -wover code in __PERL__ sections on any PSP file to check for syntax errors. Will automatically skip HTML code. It only checks code in the __PERL__ area, and won't check syntax in in-line perl, dynamic attributes etc.
Other files referenced by WebDyne¶
/etc/webdyne.conf.pl, ~/.webdyne.conf.pl, $DOCUMENT_ROOT/.webdyne.conf.pl, $DOCUMENT_ROOT/webdyne.conf.pl-
Used for storage of local constants that override WebDyne defaults. See the WebDyne::Constant section for details