Plagger::Plugin::Publish::JavaScript - publish links to entries as JavaScript
- module: Publish::JavaScript config: dir: /path/to/www/js filename: %t.js
This plugin publishes links to feed entries as an HTML embedable JavaScript file. The JS file contains document.write() calls, and can be easily included in any HTML page using:
<script src="/path/to/file.js"></script>
in any place, like Blog sidebar widgets.
The HTML emitted by the JavaScript code has exactly the same structure with Movable Type's standard sidebar module, so you can easily style using CSS.
Directory to save JS files in.
Filename to be used to create JS files. It defaults to %i.js, but could be configured using the following formats like strftime:
%i.js
%u url
%l link
%t title
%i id
Tatsuhiko Miyagawa
Plagger, Plagger::Plugin::Publish::MTWidget
To install Plagger, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Plagger
CPAN shell
perl -MCPAN -e shell install Plagger
For more information on module installation, please visit the detailed CPAN module installation guide.