generic place to add template plugin methods
[Evergreen.git] / Open-ILS / src / perlmods / OpenILS / Template / Plugin / WebUtils.pm
1 package OpenILS::Template::Plugin::WebUtils;
2 use strict; use warnings;
3 use OpenILS::Utils::Fieldmapper;
4
5 use Template::Plugin;
6 use base qw/Template::Plugin/;
7 use OpenSRF::AppSession;
8 use OpenSRF::System;
9 use XML::LibXML;
10 use OpenSRF::Utils::SettingsParser;
11
12 sub new {
13         my ($class) = @_;
14         $class = ref($class) || $class;
15         my $self = {};
16         return bless($self,$class);
17 }
18         
19
20 sub XML2perl {
21         my( $self, $doc ) = @_;
22         return OpenSRF::Utils::SettingsParser::XML2perl($doc);
23 }
24
25
26
27 1;