Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhthorsen/w3c-validator-server
Run http://validator.w3c.org as a local instance
https://github.com/jhthorsen/w3c-validator-server
Last synced: 27 days ago
JSON representation
Run http://validator.w3c.org as a local instance
- Host: GitHub
- URL: https://github.com/jhthorsen/w3c-validator-server
- Owner: jhthorsen
- Created: 2011-06-08T12:30:51.000Z (over 13 years ago)
- Default Branch: master
- Last Pushed: 2015-11-12T20:48:28.000Z (about 9 years ago)
- Last Synced: 2024-10-16T11:58:42.580Z (3 months ago)
- Language: Perl
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 3
- Forks: 4
- Open Issues: 0
-
Metadata Files:
- Readme: README
- Changelog: Changes
Awesome Lists containing this project
README
NAME
W3C::Validator::Server - Run http://validator.w3c.org as a local
instanceVERSION
0.1201DESCRIPTION
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 .ENVIRONMENT VARIABLES
W3C_HOME
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_CFG
Used by "cgi-bin/check" (from w3c). Default is to look for$W3C_HOME/config/validator.conf
HOME
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.The directory holding files will be: "$HOME/.w3c-validator-server"
INSTALLATION
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 configThe files will be installed to your home directory, or current directory
if "Makefile.PL" is found. See
for more details.SYNOPSIS
$ w3c-validator-server.psgi
$ plackup /usr/bin/w3c-validator-server.psgi
$ starman path/to/w3c-validator-server.psgi
$ ./bin/w3c-validator-server.psgiMETHODS
build_app
$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.
version_cb
See "version_cb" in Plack::Runner.COPYRIGHT & LICENSE
This library is free software. You can redistribute it and/or modify it
under the same terms as Perl itself.AUTHOR
Jan Henning Thorsen - "jhthorsen at cpan.org"