Apache::JavaScript::DocumentWrite - replaces document as javascript document.write
PerlTransHandler Apache::JavaScript::DocumentWrite
Apache::JavaScript::DocumentWrite is a mod_perl handler to output HTML (or plain text) file as a JavaScript document.write file. This module helps you to do client-side SSI using JavaScript.
For example, you have a HTML file generated from RSS with crontab in
http://example.com/rss.html
access to
http://example.com/rss.html.js
gives you document.write version of rss.html. Thus it can be embedded into another HTML file using SCRIPT html tag like:
<script src="http://example.com/rss.html.js"></script>
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
mod_perl
To install Apache::JavaScript::DocumentWrite, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::JavaScript::DocumentWrite
CPAN shell
perl -MCPAN -e shell install Apache::JavaScript::DocumentWrite
For more information on module installation, please visit the detailed CPAN module installation guide.