NAME
SCALP - Simple CMS Assistant for Lazy Programmers
VERSION
Version 0.0.2
SYNOPSIS
This module provides PERL programmers the ability to write a CMS with greater ease.
This is the way I use the module: 1. I create a skeleton of how a page is built (or "design", if you will) in HTML. 2. I replace the location of menus and content with tags (<#mainmenu#>, <#leftcontent#>) and so on. 3. I write a small web interface (or CLI, depends who maintains it - but web seems the easiest, no?) that allows me to store in a file (conf or using store()) the way the content merges with the HTML design. For example: preentry = "<ul>" <-- that way I know the menu entries have <ul> before them. After I've entered all the design preferences in the web interface and stored it using store() or a conf file, I write the engine. 4. The engine reads the conf and uses SCALP in order to save the data of the pages and preferences of each page and of the whole site. 5. I use SCALP's functions in order to create new pages or new entries in the content system and so on. 6. The engine I write replaces the tags with the values of the SCALP objects.
* Using SCALP makes the engine writing easier, more general and thus, more dynamic and suitable for different situations. Also, it enables me to have different types of pages and different behaviors upon each page. * Using a conf file (or a stored file) allows me to adjust the designing, thus making the design replaceable. If I want to change the design, it will only take me a few minutes to adjust the configuration and the way the page is printed (the engine's job)
For example:
use SCALP;
my $page = SCALP->new( title => "Why SCALP sucks" );
...
EXPORT
Nothing is exporter so far. Hopefully nothing will ever be.
FUNCTIONS
new
Creates a new SCALP object, probably a page of some sort. It returns a reference to a hash that hold whichever values you give to it upon creation.
title
Sets a title to the SCALP object. Should be used as a page title.
AUTHOR
Sawyer, <xsawyerx at gmail.com>
BUGS
Please report any bugs or feature requests to bug-scalp 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.
or
Just email me instead.
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