W3C::Validator::Server - Run http://validator.w3c.org as a local instance
0.1201
This application is useful if you want to verify your HTML either offline or markup that is protected on an intranet. This server should provide the same sort of validation as http://validator.w3c.org.
Will be used by both w3c-validator-install.sh and w3c-validator-server.psgi to install and search for external files. See "INSTALLATION" for details.
w3c-validator-install.sh
w3c-validator-server.psgi
Used by cgi-bin/check (from w3c). Default is to look for
cgi-bin/check
$W3C_HOME/config/validator.conf
The directory holding files will be: $HOME/.w3c-validator-server
$HOME/.w3c-validator-server
After downloading/installing this module you have to install some more external dependencies. This can be done by using the w3c-validator-install.sh script, bundled with this package:
$ w3c-validator-install.sh all # install libraries. Require sudo, apt-get and cpanm $ w3c-validator-install.sh libs # fetch files from http://validator.w3.org $ w3c-validator-install.sh files # rewrite config to defaults $ w3c-validator-install.sh config
The files will be installed to your home directory, or current directory if Makefile.PL is found. See http://validator.w3.org/docs/install.html for more details.
Makefile.PL
$ w3c-validator-server.psgi $ plackup /usr/bin/w3c-validator-server.psgi $ starman path/to/w3c-validator-server.psgi $ ./bin/w3c-validator-server.psgi
$app = $class->build_app({ home => '/path/to/...', # W3C_HOME htdocs => '/path/to/...', # W3C_HOME/root/htdocs cgi_bin => '/path/to/...', # W3C_HOME/root/cgi-bin validator_config => '/path/to/...', # W3C_VALIDATOR_CFG });
Will use Plack::Builder to create a plack application.
See "ENVIRONMENT VARIABLES" for details on how to instruct this method.
See "version_cb" in Plack::Runner.
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself.
Jan Henning Thorsen - jhthorsen at cpan.org
jhthorsen at cpan.org
To install W3C::Validator::Server, copy and paste the appropriate command in to your terminal.
cpanm
cpanm W3C::Validator::Server
CPAN shell
perl -MCPAN -e shell install W3C::Validator::Server
For more information on module installation, please visit the detailed CPAN module installation guide.