generic place to add template plugin methods
authorerickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Sep 2005 19:25:19 +0000 (19:25 +0000)
committererickson <erickson@dcc99617-32d9-48b4-a31d-7c20da2025e4>
Wed, 21 Sep 2005 19:25:19 +0000 (19:25 +0000)
git-svn-id: svn://svn.open-ils.org/ILS/trunk@1848 dcc99617-32d9-48b4-a31d-7c20da2025e4

Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebUtils.pm [new file with mode: 0644]

diff --git a/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebUtils.pm b/Open-ILS/src/perlmods/OpenILS/Template/Plugin/WebUtils.pm
new file mode 100644 (file)
index 0000000..6637e55
--- /dev/null
@@ -0,0 +1,27 @@
+package OpenILS::Template::Plugin::WebUtils;
+use strict; use warnings;
+use OpenILS::Utils::Fieldmapper;
+
+use Template::Plugin;
+use base qw/Template::Plugin/;
+use OpenSRF::AppSession;
+use OpenSRF::System;
+use XML::LibXML;
+use OpenSRF::Utils::SettingsParser;
+
+sub new {
+       my ($class) = @_;
+       $class = ref($class) || $class;
+       my $self = {};
+       return bless($self,$class);
+}
+       
+
+sub XML2perl {
+       my( $self, $doc ) = @_;
+       return OpenSRF::Utils::SettingsParser::XML2perl($doc);
+}
+
+
+
+1;