# This code is a part of Slash, and is released under the GPL. # Copyright 1997-2001 by Open Source Development Network. See README # and COPYING for more information, or see http://slashcode.com/. # $Id: Display.pm,v 1.2.2.15 2001/10/19 22:18:10 pudge Exp $ package Slash::Display; =head1 NAME Slash::Display - Display library for Slash =head1 SYNOPSIS slashDisplay('some template', { key => $val }); my $text = slashDisplay('template', \%data, 1); =head1 DESCRIPTION Slash::Display uses Slash::Display::Provider to provide the template data from the Slash::DB API. It will process and display a template using the data passed in. In addition to whatever data is passed in the hashref, the contents of the user, form, and static objects, as well as the %ENV hash, are available. C will print by default to STDOUT, but will instead return the data if the third parameter is true. If the fourth parameter is true, HTML comments surrounding the template will NOT be printed or returned. That is, if the fourth parameter is false, HTML comments noting the beginning and end of the template will be printed or returned along with the template. L