Tatsuhiko Miyagawa > Plagger-0.7.17 > Plagger::Plugin::Publish::JavaScript

Download:
Plagger-0.7.17.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  3
Open  0
View/Report Bugs
Source  

NAME ^

Plagger::Plugin::Publish::JavaScript - publish links to entries as JavaScript

SYNOPSIS ^

  - module: Publish::JavaScript
    config:
      dir: /path/to/www/js
      filename: %t.js

DESCRIPTION ^

This plugin publishes links to feed entries as an HTML embeddable 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.

CONFIG ^

dir

Directory to save JS files in.

filename

Filename to be used to create JS files. It defaults to %i.js, but could be configured using the following formats like strftime:

  • %u url
  • %l link
  • %t title
  • %i id

AUTHOR ^

Tatsuhiko Miyagawa

SEE ALSO ^

Plagger, Plagger::Plugin::Publish::MTWidget

syntax highlighting: