NAME
YAML::YuyuPress - Tool for making presentations out of YAML files.
SYNOPSIS
use YAML::YuyuPress;
my $yuyu = new YAML::YuyuPress( { path => $path, #to templates dir
plantilla => 'plantilla.tmpl', #template
contenido => 'contenido.yaml', #slides
staticdir => '/path/to/dir' # static dir
);
$yuyu->run(); # Runs in port 8080 by default
$yuyu->port(13432); # Set the server port
my $pid=$yuyu->background(); # or
$yuyu->run(); # Both inherited from HTML::Server::Simple::CGI
The presentation can then be run from http://localhost:13432/, slides accessed via http://localhost:13432/?slide=1 or, REST-style, http://localhost:13432/slide/1, index via http://localhost:13432/?indice=1 or http://localhost:13432/index
DESCRIPTION
Program for making presentations out of YAML files. Can be used as a module or from the yuyupress
script
Inherits from YAML::Yuyu and HTTP::Server::Simple::CGI for serving pages. Use yuyuhowto
for a quick presentation of the things that can be done, and how to do them; the presentation itself is contained in the bin
directory of the distro under the name howto.yaml
. yyp-?.yaml
, in the t
dir, are examples also of correct presentations.
METHODS
new
Creates a new copy of the object
handle_request CGI
Overrides default to return the main presentation page
('portada'), index or any of the slides.
Copyright
This file is released under the GPL. See the LICENSE file included in this distribution,
or go to http://www.fsf.org/licenses/gpl.txt
CVS Info: $Date: 2008/02/11 09:41:08 $
$Header: /home/jmerelo/repos/yuyupress/lib/YAML/YuyuPress.pm,v 1.21 2008/02/11 09:41:08 jmerelo Exp $
$Author: jmerelo $
$Revision: 1.21 $