File: TemplateDumper.pm

package info (click to toggle)
swish-e 2.4.7-7.1
  • links: PTS
  • area: main
  • in suites: forky, sid
  • size: 8,188 kB
  • sloc: ansic: 51,640; sh: 8,889; perl: 3,019; makefile: 591; xml: 9
file content (24 lines) | stat: -rw-r--r-- 608 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#===============================================================================
# This just dumps out the results object.
# Need to use a query string to do anything interesting
#
#    $Id: TemplateDumper.pm 1137 2003-02-28 06:06:10Z whmoseley $
#
#===============================================================================
package SWISH::TemplateDumper;
use strict;

use Data::Dumper;

sub show_template {
    my ( $class, $template_params, $results ) = @_;

$Data::Dumper::Quotekeys = 0;
    print "Content-Type: text/plain\n\n",
          Dumper $template_params,
          Dumper $results;
}

1;