NAME
SCALP::Menu - The default Menu module that comes with SCALP
VERSION
Version 0.0.3
SYNOPSIS
This module provides simple menu capabilities.
use SCALP::Menu;
my $menu = SCALP::Menu->new();
...
FUNCTIONS
new
Creates an object of SCALP::Menu.
Can accept any argument given and adds it.
Any Menu type page has an array of entries, and they are composed of "headline" and "href".
Each headline has its own href and SCALP::Menu allows you to access them easily.
add_entry
Adds a new menu entry (refered to as 'entries') :
$menu->add_entry( headline => 'About us', href => 'about.html' );
(I understand the parody in using a script to create a link to a static html file :)
or you could also use the ID concept available in SCALP:
my $id = $menu->add_entry;
headline
Sets up a headline for an entry:
$id->headline('About us');
href
Sets up an href for an entry:
$id->href('renderer.pl?page=about.html');
AUTHOR
Sawyer, <xsawyerx at gmail.com>
BUGS
Please report any bugs or feature requests to bug-scalp-menu at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SCALP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc SCALP
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
RT: CPAN's request tracker
Search CPAN
ACKNOWLEDGEMENTS
COPYRIGHT & LICENSE
Copyright 2007 Sawyer, all rights reserved.
This program is released under the following license: GPL v2 or later