GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Plagger::Plugin::Widget::Simple(3) User Contributed Perl Documentation Plagger::Plugin::Widget::Simple(3)

Plagger::Plugin::Widget::Simple - Simple widget creation using config

  - module: Widget::Simple
    config:
      link: http://www.example.com/
      content_dynamic: "Entry from [% entry.author %]"

Widget::Simple is a plugin that allows you to write your own widget using a simple configuration file.

link
  link: http://example.com/add
    

URL that the widget links to. Required.

query
  query:
    version: 4
    url: $args->{entry}->url
    

Query parameter to append to the URL. If the value contains "$", it'll be automatically eval()ed. Optional.

content
  content: <img src="http://example.com/img.gif" alt="foo" />
    

Content to display in a widget. HTML tags will be displayed as is and thus any HTML meta characters have to be escaped. Required, if you don't use content_dynamic.

content_dynamic
  content_dynamic: "Entry from [% entry.author | html %]"
    

If you want to dynamically generate the content of widget, use content_dynamic instead. Value of the content_dynamic is compiled and rendered using Template-Toolkit. Required, if you don't use content.

Tatsuhiko Miyagawa

Plagger
2006-12-05 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.